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:
commit
cd84cc026f
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue