Ok get your mowing done , carefully, for now then it will be time to track down the actual problem
At this point in time I very strongly recommend you buy the JD technical manual for your mower.
The electrical section starts by telling what each bit does & how it works , then follows up with exactly how to test the mower with nothing more complicated than a multimeter and finishes by showing exactly where on the mower each switch is hidden .
It is not cheap , but good is seldom cheap and will pay for itself in bottles of burbon not needed to calm your frayed nerves and repairs to the holes in the wall you threw your tools through in frustration .
JD seem to believe in the old engineering adage
" there is nothing so simple that works so well that it can not be made better by making it more complicated "
Even worse is JD will have multiple different wiring on the same model plus different wiring again for the USA, South America , Pacific, Europe etc .
If I had a diagram for am X300 I would have posted it but I don't .