Unplug the washer's power cord from the electrical outlet and pull it away from the wall.
Remove the two screws on the front bottom corners of the control panel with a Phillips head screwdriver. On some models, the screws may be covered by plastic clip-on end caps. Pull the end caps off from the top to access the screws.
Slide a putty knife into the seam between the ends of the control panel and the washer. Pry the control panel upward with the putty knife to detach it if there are no attaching screws on your model.
Rotate the control panel up and out of the way.
Unplug the white wiring harness connector from the top of the machine by levering the catch out with your thumb and pulling the connector upward.
Insert a flat head screwdriver into the slots on the front of the two gold-colored clips on either side. Push the screwdriver handle forward to unsnap the clips from the top of the washer. Remove the clips and set them to the side.
Tilt the washing machine's outer casing forward and slide it away from the machine. Turn the casing on its back and lay it on top of a large bath towel.
Remove the green ground screw leading from the door switch to the casing with a nut driver.
Undo the two switch mounting screws with the Phillips head screwdriver. Pry out the metal clips that hold the wire harness to the inside cover with the flat head screwdriver.
Adjust the jaws of a pair of channel pliers to fit over the white wiring harness connector. Squeeze the sides of the connector to disengage the clips and pull it out of the casing, along with the door switch.
Snap the new lid switch connector into its recess. Secure the wiring harness to the side of the casing with both metal clips removed earlier. Attach the new switch to the casing securely with the two screws removed earlier and use the nut driver to attach the green ground wire onto the casing.
Lift the casing and slide the front edge under the washer base frame. Push the bottom in with your foot. Align the two notches under the back with the two tabs on the base frame and lower the cover into place. Pull the back panel forward until it slots into the casing.
Insert the ends of the two gold-colored spring clips into their recesses on the back panel. Lever the front of the clips down with the flat head screwdriver until they snap into place.
Connect the control panel to the casing by plugging it back into the wire harness connector on top of the washer.
Lower the control panel and secure it with the two screws removed earlier. Replace the end caps, if applicable, by aligning the lower clips with the slot in the bottom and snapping the upper clips back into place or simply press the sides of the control panel down to clip it back if there are no attaching screws.
Plug the appliance back into the wall outlet. Push the washer back against the wall. Insert a load of laundry and turn the machine on to ensure that the door switch is working properly.