If you touch the glass on multiple occasions throughout the wash and the glass feels cold every time, this again is another indicator of a faulty element as on most washing machines the glass section of the door will become at least warm during the hot wash cycle. If the wash seems to go on and on and takes much longer than usual and with some machines the wash cycle may even just go on and on until you stop it, this again is a indicator that the element may have a fault, on some washing machine the wash cycle will not stop or move on to the next cycle until a certain preset temperature has been reached, so the machine would just go on and on waiting for the element to heat the water to the preset temperature, but be warned there are other problems that can show very similar symptoms to all the above.
Dishwashers use pressure switches that are similar to those used in washing machines. However, instead of having one switching point, they have multiple levels. For example, a two-position switch may switch at 10cm and 15cm of water, while a three-position switch may trip at 15cm, 25cm and 35cm of water.