mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
Fix build.
This commit is contained in:
parent
33969bfdc0
commit
6547e61f62
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ RSpec.configure do |config|
|
|||
example.run
|
||||
# example is just a Proc, @example is the current RSpec::Core::Example
|
||||
e = @example.instance_variable_get('@exception') # usually nil
|
||||
if (e.is_a?(Selenium::WebDriver::Error::UnknownError) &&
|
||||
if (defined?(Selenium::WebDriver::Error::UnknownError) && e.is_a?(Selenium::WebDriver::Error::UnknownError) &&
|
||||
e.message == 'docElement is null' && (attempts += 1) < 5)
|
||||
@example.instance_variable_set('@exception', nil)
|
||||
redo
|
||||
|
|
Loading…
Add table
Reference in a new issue