[wtr-general] Using single watir script to test chrome/ff/ie

2012-04-18 Thread iherebyresign
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-

Re: [wtr-general] Using single watir script to test chrome/ff/ie

2012-04-18 Thread bis
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

Re: [wtr-general] Using single watir script to test chrome/ff/ie

2012-04-18 Thread Chuck van der Linden
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