Whenever a page load happens after selecting a value from list box or clicking a button, watir waits for the page to load. But in watir webdriver it doesn't wait in the case of list box selection. I used both watir and watir-webdriver against the same application.
Can anyone confirm this behavior? Any idea why it was there in watir but not in watir webdriver?
Update:
@browser.text_field(:id,"name").set("Sivaguru")
@browser.select_list(:id,"Gender").select("Male")
@browser.button(:id,"Submit").click
@browser.text_field(:id,"comments").set("sample")
In the above sample code, two times the page is loaded. one is after the selection and the other one is after click on the button.
In the case of watir , it by default waits for both the page loads. But watir webdriver waits in the case of button click but not on selection.
Since I am working on migrating from watir to webdriver i am interested to understand this behaviour before do changes to the existing code.