Avoid "Cannot read property 'get_Current' of undefined" issues.

This commit is contained in:
Martin Edenhofer 2015-12-14 11:02:49 +01:00
parent 1d4e1310d1
commit a7a0339f8d
2 changed files with 13 additions and 5 deletions

View file

@ -106,7 +106,7 @@ class AgentTicketActionsLevel3Test < TestCase
css: '.active div.ticket-article',
value: 'some level 3 <b>body</b> in instance 2',
)
sleep 1
match_not(
browser: browser1,
css: '.content.active .js-reset',

View file

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