Unplug the washer from the wall outlet.
Open the washer door and then remove the wire clamp and spring, which are located around the boot seal. To remove the wire clamp and spring, pry it out using a flat-head screwdriver.
Pull the boot seal away from the right-side of the tub opening.
Reach behind the door jamb and remove the mounting from the front of the door jamb, securing the door lock to the washer.
Lift the lock assembly off of the door latch bracket and then pull the door lock out of the washer and disconnect the wire connector. To disconnect the wire connector, depress the tab on the connector and pull it off the terminal.
Connect the wire connector to the new door lock and then install the lock in the washer, using the mounting screws that were removed to secure it into position.
Move the boot seal back into position and then reinstall the wire clamp and spring.
Close the washer door and then restore power to the appliance.