spec/implementation.rb in watir-webdriver-0.6.4 vs spec/implementation.rb in watir-webdriver-0.6.5

- old
+ new

@@ -105,11 +105,11 @@ [:firefox, {:profile => profile}] end def chrome_args opts = { - :switches => ["--disable-translate"], + :args => ["--disable-translate"], :native_events => native_events? } if url = ENV['WATIR_WEBDRIVER_CHROME_SERVER'] opts[:url] = url @@ -121,14 +121,18 @@ if path = ENV['WATIR_WEBDRIVER_CHROME_BINARY'] Selenium::WebDriver::Chrome.path = path end + if ENV['TRAVIS'] + opts[:args] << "--no-sandbox" # https://github.com/travis-ci/travis-ci/issues/938 + end + [:chrome, opts] end def remote_args - [:remote, {:url => ENV["WATIR_WEBDRIVER_REMOTE_URL"] || "http://127.0.0.1:8080"}] + [:remote, {:url => ENV["WATIR_WEBDRIVER_REMOTE_URL"] || "http://127.0.0.1:8080"}] end def add_html_routes glob = File.expand_path("../html/*.html", __FILE__) Dir[glob].each do |path|