Hi Webdriver team,
Im working on UI automation using Webdriver.
I have a Next button that is disabled by default.
<button id="pt1:r1:0:pt1:cb2" class="btn-primary af_commandButton p_AFDisabled p_AFTextOnly" disabled="">Next</button>
After a checkbox is clicked the ,the button attribute disabled is removed and the button can be clicked when done manually. I m unable to achieve this using webdriver.
The checkbox is clicked ,even if I use Thread.sleep or explicit wait for a condition to occur also the button is still in disabled state so the button click is not happening.
The HTML of button element once checkbox is clicked is as follows:
<button id="pt1:r1:0:pt1:cb2" class="btn-primary af_commandButton p_AFTextOnly" onclick="return false;">Next</button>
PLease help me as am stuck at this point to move further.
Im using FF 26.0,windows 8,Selenium 2.39 version.
Regards,
Aquasush