You don’t necessarily have to wait until it acts up again - it depends on what’s actually going on. But testing for a short should only take a few minutes.
Note: I say test light, but this will also work with a meter - just watch for battery voltage instead of the light turning on.
1) Disconnect the control wires for the solenoid.
2) Verify your test light is functional by checking it on the battery.
3) Connect test light between the control wires for the solenoid.
4) Key off, test for a short in the wiring by wiggling the harness, starting at the key switch and working towards the solenoid. While doing so, watch the test light to see if it flickers on and off - even a quick flash of light indicates a short. If the light turns on at any point, closely inspect that area of the harness for bare wires making contact. Clues of the problem are often marked by melted insulation. Repair as necessary.
5) If no problems are found, perform the same type of testing with the key in the switch. In the off position, move it back and forth and side to side to check for contact problems. What you’re trying to do is move the switch without actually rotating the key to on or start.
6) If still no problems are found, consider it fixed.