Using Selenium (2.5.0), one of the steps is to run a simple block of JavaScript:
Command: runScript
Target: javascript{document.getElementById("ui-datepicker-div").style.display='block';}
Value: [blank]
When running executing this command I get the error message
[error] Unexpected Exception: TypeError: document.getElementById(...) is null.
- The element ID definitely exists and I have tried this with text boxes etc too
- I can't see why this should return a null error as it doesn't really mean much
Can anyone suggest how I can fix this?