Hi Team,
I am working on UI automation of web application using Webdriver. I have a "Next" button which is disabled by default. But when a checkbox is selected the button "disabled" attribute disappears and it can be clicked to go to next page. Im trying to achieve this using webdriver. But none seem to work. Im using Java, eclipse,Testng framework on Windows 8,and using Selenium 2.39 version and Firefox 26.0 browser.It could be great if someone really helps me out to move further.
PLease find the HTML for the button
<button id="pt1:r1:0:pt1:cb2" class="btn-primary af_commandButton p_AFDisabled p_AFTextOnly" disabled="">Next</button>
Once the checkbox is selected the HTML of the button changes to
<button id="pt1:r1:0:pt1:cb2" class="btn-primary af_commandButton p_AFTextOnly" onclick="return false;">Next</button>
Please help.