Small Engine Troubleshooting Problems? Ask a Mechanic Now.
What engine does the mower have? Model number of the engine? Look at the carburetor, for electric solenoid, this solenoid cuts the fuel off to the main jet when it is closed. It has to have 12 volts at all times, or the engine dies. Will tractor start right back up?
You need to check the solenoid for voltage when it works and as soon as the engine dies. Will it immediately restart?
I think the solenoid is bad. It can be removed and the tip cut off, to use it as a dummy for a test. Or replace it with a new one, only to find out is is not bad! You can remove it and bench test apply voltage to it, and see if it stays retracted. It should hold as long as it has voltage.
What would oil level have to do with fuel solenoid?