We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6bbd4e4 commit 2b4f9d8Copy full SHA for 2b4f9d8
rb/lib/selenium/webdriver/remote/driver.rb
@@ -45,8 +45,10 @@ def devtools_url
45
end
46
47
def devtools_version
48
- capabilities['se:cdpVersion']&.split('.')&.first ||
49
- raise(Error::WebDriverError, 'DevTools is not supported by the Remote Server')
+ cdp_version = capabilities['se:cdpVersion']&.split('.')&.first
+ raise Error::WebDriverError, 'DevTools is not supported by the Remote Server' unless cdp_version
50
+
51
+ Integer(cdp_version)
52
53
54
def process_options(options, capabilities)
0 commit comments