Unplug the machine.
Remove the 2 lid switch screws under the lid.
Pull the lid switch out into the tub area.
Cut the 2 wires. Strip the ends of the wires and nut them together.
Plug the machine in and set to spin to test the operation.
If it works correctly,replace the lid switch.
If not,replace the lid switch and continue diagnosis.