I am creating an automated test script for webapp using selenium, and I am trying to use the waifForCondition API function where it will wait until the JS script is true .
I currently have this source on the page:
<input id="modifyHostsForm:idDnsIp0_0" type="text" name="modifyHostsForm:idDnsIp0_0" readonly="" disabled="">
What should change to:
<input id="modifyHostsForm:idDnsIp0_0" type="text" name="modifyHostsForm:idDnsIp0_0">
As soon as I put a certain value in another field and started the βblurβ event on it (and this field becomes βonβ).
And I'm trying to run the following JS script to check when this field is turned on (basically what I found from "Google"):
document.getElementbyId('modifyHostsForm:idDnsIp0_0').disabled == false
However, I get a SeleniumException that indicates that "Object does not support this property or method." What can i do here? Any help would be appreciated.
Argote
source share