Selenium.getText for hidden element

.getText() (note there’s nothing inside the brackets) should get the innerHTML property, but if your element doesn’t have any innerHTML, but instead has text written (e.g. it is an input element), .getAttribute('value') should get you what you need.

Anyway, this is just some guesswork, if I didn’t hit anything, follow the advice given here: