I am using Selenium 2.25.0 to automate GUI testing for a web application. This application has a setup wizard that takes the user through a certain set of forms and configures an appliance accordingly. Forms are dynamically generated and have a common set of back/next buttons. At a particular page the next button does not click().
I have verified that the Dimensions(size()) of this button are > 0. I can see the button getting focussed, but it does not click. Also, click() method does not throw any exception.
Ultimately, the explicit wait on the next line of code times out and my test fails. Browser is Firefox and until recently, the same code used to work fine.
This seems to be a known issue. In that case, is there a workaround ?
The solution shall work with Firefox/Chrome and IE.
Some one suggested to use
driver.manage.Timeout().PageLoadTimeouts()
But isn’t that redundant if the code already has an explicit wait.
Have a look at http://seleniumhq.org/docs/04_webdriver_advanced.html, also make sure you are focused correctly on the correct frame.