Skip to content

Commit 0421f53

Browse files
committed
Grab CDP version from capabilities when using remote
1 parent d9ef528 commit 0421f53

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

rb/lib/selenium/webdriver/remote/driver.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ def initialize(bridge: nil, listener: nil, **opts)
4949
def devtools_address
5050
capabilities['se:cdp']
5151
end
52+
53+
def devtools_version
54+
capabilities['se:cdpVersion'].split('.').first
55+
end
5256
end # Driver
5357
end # Remote
5458
end # WebDriver

0 commit comments

Comments
 (0)