lib/sauce/cucumber.rb in sauce-cucumber-3.5.4 vs lib/sauce/cucumber.rb in sauce-cucumber-3.7.0
- old
+ new
@@ -94,10 +94,12 @@
platforms = config.caps_for_location("./#{fn[:file]}", fn[:line])
test_each platforms, job_name do |selenium, caps|
@selenium = selenium
- Sauce.driver_pool[Thread.current.object_id] = @selenium
+ thread_id = Thread.current.object_id
+ Sauce.logger.debug "Cucumber - Thread #{thread_id} storing driver #{@selenium.session_id} in driver pool."
+ Sauce.driver_pool[thread_id] = @selenium
driver = ::Capybara.current_session.driver
# This session_id is the job ID used by Sauce Labs, we're pulling it
# off of the driver now to make sure we have it after `block.call`
session_id = driver.browser.session_id