mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
Only W3C is supported in Selenium 4
This commit is contained in:
parent
a436a83064
commit
e137980d4d
1 changed files with 2 additions and 1 deletions
|
@ -8,7 +8,8 @@ module Capybara::Selenium::Driver::FirefoxDriver
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.w3c?(driver)
|
def self.w3c?(driver)
|
||||||
driver.browser.capabilities.is_a?(::Selenium::WebDriver::Remote::W3C::Capabilities)
|
(defined?(Selenium::WebDriver::VERSION) && (Selenium::WebDriver::VERSION.to_f >= 4)) ||
|
||||||
|
driver.browser.capabilities.is_a?(::Selenium::WebDriver::Remote::W3C::Capabilities)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue