Next try to avoid "Cannot read property 'get_Current' of undefined" issues.

This commit is contained in:
Martin Edenhofer 2015-12-15 00:52:26 +01:00
parent fbc27469bb
commit 18597b7e2a

View file

@ -59,7 +59,17 @@ class TestCase < Test::Unit::TestCase
url: ENV['REMOTE_URL'], url: ENV['REMOTE_URL'],
desired_capabilities: caps, desired_capabilities: caps,
) )
@browsers[local_browser.hash] = local_browser
# avoid "Cannot read property 'get_Current' of undefined" issues
begin
browser_instance_preferences(local_browser) browser_instance_preferences(local_browser)
rescue
# just try again
sleep 10
browser_instance_preferences(local_browser)
end
local_browser local_browser
end end