Watir browser process doesn't start properly (Windows)
That's this bug in Firefox. Your options are:
- Wait for the patch in Firefox 47
- Downgrade to Firefox 46
- Use Marionette instead of the Firefox Driver (which is being deprecated and won't work with new versions of Firefox soon)
- 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
Determining Type of an Object in Ruby
What Does the |Variable| Syntax Mean
Ror: Execute SQL in Controller
Ruby on Rails Updating Heroku Dynamic Routes
Create Multiple Records with Fields_For - Rails
How to Use Local or Instance Variable in Ruby Code in Coffeescript in Haml Template
Rails 3 - Devise/Actionmailer/Ruby-Smtp Causing a Segmentation Fault
Are Spies an Appropriate Approach to See If Resque Methods Are Being Fired
Randomly Showing Nomethoderror: Undefined Method 'Empty' for 0:Fixnum
How to Write the JSON Schema If JSON Has Multiple Data Set
How to Remove the Extra Double Quote
Iterate and Set Ruby Object Instance Variables
Capistrano Deploy Fails After I Changed the Repository Url
Ide Sublime2 How to Find Method Definition
Make a Ruby Script with Text Io Double Clickable Executable File