Watir Browser Process Doesn't Start Properly (Windows)

Watir browser process doesn't start properly (Windows)

That's this bug in Firefox. Your options are:

  1. Wait for the patch in Firefox 47
  2. Downgrade to Firefox 46
  3. Use Marionette instead of the Firefox Driver (which is being deprecated and won't work with new versions of Firefox soon)
  4. Use Chrome

To try marionette, download the geckodriver and do:

browser = Watir::Browser.new :firefox, marionette: true

How to deal with a page which fails to load and continue testing in Watir-Webdriver

I am not sure how would you test a page that did not load, but try something like this:

begin
browser.goto "http://www.mycounciltax.org.uk/results?postcode=WC1N1DF&search=Search"
rescue => e
puts "rescued #{e}"
end

Problem connecting to localhost with watir

You need to run as Administrator on Windows 7 when using Watir against localhost.

Credit to http://chowamigo.blogspot.com/2010/03/setting-up-cucumber-to-use-watir-test.html

Watir Webdriver(0.9.1) No Longer Opens an Instance of Firefox

Mozilla has introduced a new webdriver, and due to a bug in firefox 47, only the new webdriver works for firefox. However I would suggest permanently switching to the new webdriver either way as support will be fully dropped as of firefox 48.

You can use the new webdriver in ruby using the following:

driver = Selenium::WebDriver.for :firefox, marionette: true

But I don't know if that would make you able to use it in watir as well.

As far as I can tell marionette (the new driver) support is not completed yet in watir (I could be wrong), I see this pull request is dealing with it but it is not completed or merged.

It looks to me as if you can do:

browser = Watir::Browser.new :marionette

When the watir project is finished integrating the new driver.



Related Topics



Leave a reply



Submit