1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00

Merge pull request #2335 from teamcapybara/pause_fix

Only patch in pause for selenium-webdriver < 4 - Fix Issue #2334
This commit is contained in:
Thomas Walpole 2020-04-03 17:35:19 -07:00 committed by GitHub
commit cd84cc026f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,4 +20,7 @@ module ActionPauser
private_constant :Pauser
end
::Selenium::WebDriver::ActionBuilder.prepend ActionPauser if defined? ::Selenium::WebDriver::ActionBuilder
if defined?(::Selenium::WebDriver::VERSION) && (::Selenium::WebDriver::VERSION.to_f < 4) &&
defined?(::Selenium::WebDriver::ActionBuilder)
::Selenium::WebDriver::ActionBuilder.prepend(ActionPauser)
end