Hi AG: You can also check the striker (flat metal piece that is attached to the dishwasher and protrudes into the door to trip the latch asm)
I have seen these get bent up to much so that when you close the door it dose not trip the switch, therefore no power.
could be worth a try to check it out.