First do not watch the videos . They had you taking the insides all apart when all you had to do is pull the unit out , twist the motor out and put the new one back in. Take nothing apart inside the dishwasher.
Turn off circuit breaker. Turn off water at shutoff valve usually located under sink. Disconnect water line from dishwasher. Disconnect wires for the power feed from cord, Marked corresponding wires upon removal for re-installation. Remove 2 mounting screws that secure dishwasher to counter. Slide dishwasher out from counter and turn upside down. Use a blanket to prevent scratching of surfaces. Locate component on the back portion of the dishwasher. Unplug 2 wiring harnesses. My part was held on by 2 phillip screws. One in front, the other in the back along the leg bracket support. Once removed, reverse the order of removal. The i a You Tube video you can locate fr this removal. They said that you needed to release a clip to get the part out. Mine had a screw holding it on the back side. This difference cause about an extra 1/2 hour before I was able to figure out that there was NO clip that was being shown on the video. After that, The replacement went smoothly and we were having the dishes washed later that day.
With a thin flat screwdriver I was able to pry out the old door switch, I replaced it with the new door switch, pushed back in dryer and so far is working since I installed a month ago.