Product review (5 stars): Whirlpool 3949238 Washer Lid Switch
The switch I bought from Luna Parts through Amazon was a perfect fit and has worked flawlessly for the past month.  With instructions I found on youtube, it was simple to install. I saved a service call by installing it myself.