Water won't heat

When we bought our house, there was a Bosch SHU4306 already installed. The house had sat empty for two years, and the dishwasher wasn’t used. The first time, I used it, it ran for over 4hrs. Now, it doesn’t seem to take quite as long to run, but the water doesn’t get hot. I had found a website that told me how to run a test cycle and when I did that, the wash light was on, and that website said that that meant there was something wrong with the heating element. I was just wondering if there could be some kind of switch or relay that could be bad or if that means that the element itself bad and needs replaced?