Commit 2d8733c5 authored by Mikaël Salson's avatar Mikaël Salson

vidjil_browser.rb: Launch Chrome if environment variable tells us to do so

Can we let watir guess what the browser is?
parent 64efe102
......@@ -7,9 +7,14 @@ class VidjilBrowser < Watir::Browser
if ENV['WATIR_BROWSER_PATH']
print "Using custom browser location " + ENV['WATIR_BROWSER_PATH'] + "\n"
Selenium::WebDriver::Firefox.path = ENV['WATIR_BROWSER_PATH']
Selenium::WebDriver::Chrome.path = ENV['WATIR_BROWSER_PATH']
end
# :chrome or :safari
super :firefox, :marionette => false
if ENV['WATIR_CHROME']
super :chrome
else
super :firefox, :marionette => false
end
print "Running "+driver.capabilities.browser_name+" "+driver.capabilities.version+"\n"
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment