hammernight/taza — Issue #4: Changing Watir::IE.new to Watir::Browser.new opens up firefox not ie
Author: certonaqa
Created: 2012-02-23 21:50:08+00:00
State: open

Background: I'm trying to take screenshots using win32screenshot which the latest version depends on rautomation 0.7.0. I can't downgrade to the previous version of screenshot because of it's dependencies.

When i try to run a spec with rautomation .7 installed i get the following error:

no such file to load -- watir/ie

i think it's related to how self.watir_ie(params) is defined. So i changed browser || Watir::IE.new => browser || Watir::Browser.new in the taza/browser.rb and the error becomes the firefox -jssh error. So i assume that it's opening firefox.

So my question/issue is that when i change browser || Watir::IE.new => browser || Watir::Browser.new why would it open up firefox? while in irb Watir::Browser.new opens up ie. Am i missing a setting within watir?

My config.yml is set for the driver to be watir and the browser ie.