File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
rb/lib/selenium/webdriver Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,10 @@ def browser
42
42
private
43
43
44
44
def devtools_url
45
+ if capabilities [ 'moz:debuggerAddress' ] . nil?
46
+ raise ( Error ::WebDriverError , "DevTools is not supported by this version of Firefox; use v85 or higher" )
47
+ end
48
+
45
49
uri = URI ( "http://#{ capabilities [ 'moz:debuggerAddress' ] } " )
46
50
response = Net ::HTTP . get ( uri . hostname , '/json/version' , uri . port )
47
51
Original file line number Diff line number Diff line change @@ -52,7 +52,8 @@ def devtools_url
52
52
end
53
53
54
54
def devtools_version
55
- capabilities [ 'se:cdpVersion' ] . split ( '.' ) . first
55
+ capabilities [ 'se:cdpVersion' ] &.split ( '.' ) &.first ||
56
+ raise ( Error ::WebDriverError , "DevTools is not supported by the Remote Server" )
56
57
end
57
58
end # Driver
58
59
end # Remote
You can’t perform that action at this time.
0 commit comments