Running Ruby 1.9.3 with watir-webdriver 0.6.1 & Firefox 13.0
I think this is a bug caused by the Firefox 13 compatibility update:
driver.alert do
p "Clicking print"
driver.button(:value => 'Print Checked').when_present.click
end
The code ignores everything inside the "driver.alert do" block, but without
that statement it fails when it encounters the javascript popup .
This approach also doesn't work:
driver.execute_script("window.alert = function() {}")
It appears as though javascript support no longer works with
watir-webdriver's latest update.
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
[email protected]
http://groups.google.com/group/watir-general
[email protected]