Product review (5 stars): Whirlpool washing machine lid switch 8318084
Exact replacement for the one that failed. I found it simple to install.  Always unplug washer before doing any repairs. A thin blade is needed to flip the console up. Remove the grounding screw, unplug the electrical connector then unsnap the switch from the machine. Reverse for Install. Job done.