Merge "[BrowserTest] Fix ve.init is undefined and ve.init.target is undefined error messages"

This commit is contained in:
jenkins-bot 2016-03-02 23:33:32 +00:00 committed by Gerrit Code Review
commit 659b9c3576

View file

@ -205,11 +205,11 @@ class VisualEditorPage
loop do
begin
browser.execute_script script
rescue Selenium::WebDriver::Error::JavascriptError => e
rescue Selenium::WebDriver::Error::JavascriptError, Selenium::WebDriver::Error::UnknownError => e
else
e = nil
end
break unless e.class == Selenium::WebDriver::Error::JavascriptError
break unless (e.class == Selenium::WebDriver::Error::JavascriptError) || (e.class == Selenium::WebDriver::Error::UnknownError)
end
end
browser.execute_script script