Hi,
I'm looking for a way to use a single ruby script to execute all of my
test script within three browsers (chrome/ff/ie). One script, say
main.rb, has the following code:
def launch_browser (browser)
if browser == :chrome
@b = Watir::Browser.new :chrome, :switches = [==ignore-certificate-
That won't work as easily as that because not all browsers take :switches
It will fail when you try to run the browser as anything other than chrome also
in order to run it for the different browsers you would need to edit the fire
probably better to set up an environment variable so you can
Agree with what Oscar says below
An environment variable is an easy way to pass the settings on the fly
since a lot of CI systems have the ability to do that.
I'd still use your launch_browser method, but inside it use a case
statement for the browser and then you can have appropriate