Next try to avoid "Cannot read property 'get_Current' of undefined" issues.
This commit is contained in:
parent
fbc27469bb
commit
18597b7e2a
1 changed files with 266 additions and 256 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue