Product review (5 stars): Right part for the right job.
Make sure you check the model number for your specific machine.  I took a shot in the dark and tried another one, which ended up not fitting.  When I took the time to find the right model (this one), I was able to fix the lid switch on my machine by hand.  You may need a little help putting the washing machine back together, but buying this part online saved me hundreds of dollars not having to buy a new washing machine.