Skip to content
This repository has been archived by the owner on Feb 13, 2020. It is now read-only.

Commit

Permalink
Merge pull request #353 from DylanLacey/master
Browse files Browse the repository at this point in the history
Add logging of actually sent caps
  • Loading branch information
Dylan Lacey committed Oct 28, 2015
2 parents c94f63e + cc138f9 commit 4b74f4b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/sauce/selenium.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,12 @@ def initialize(opts={})
http_client = ::Selenium::WebDriver::Remote::Http::Persistent.new
http_client.timeout = 300 # Browser launch can take a while

desired_capabilities = @config.to_desired_capabilities
Sauce.logger.debug "Desired Capabilities at creation: #{desired_capabilities}"

@driver = Sauce.webdriver_method.call(:remote,
:url => "http://#{@config.username}:#{@config.access_key}@#{@config.host}:#{@config.port}/wd/hub",
:desired_capabilities => @config.to_desired_capabilities,
:desired_capabilities => desired_capabilities,
:http_client => http_client)
http_client.timeout = 90 # Once the browser is up, commands should time out reasonably

Expand Down

0 comments on commit 4b74f4b

Please sign in to comment.