Skip to content

Commit

Permalink
Grab CDP version from capabilities when using remote
Browse files Browse the repository at this point in the history
  • Loading branch information
p0deje committed Apr 12, 2021
1 parent d9ef528 commit 0421f53
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rb/lib/selenium/webdriver/remote/driver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ def initialize(bridge: nil, listener: nil, **opts)
def devtools_address
capabilities['se:cdp']
end

def devtools_version
capabilities['se:cdpVersion'].split('.').first
end
end # Driver
end # Remote
end # WebDriver
Expand Down

0 comments on commit 0421f53

Please sign in to comment.