File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
rb/lib/selenium/webdriver/common Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,10 @@ def linux?
86
86
os == :linux
87
87
end
88
88
89
+ def unix?
90
+ os == :unix
91
+ end
92
+
89
93
def wsl?
90
94
return false unless linux?
91
95
Original file line number Diff line number Diff line change @@ -83,7 +83,13 @@ def binary
83
83
"#{ directory } /macos/selenium-manager"
84
84
elsif Platform . linux?
85
85
"#{ directory } /linux/selenium-manager"
86
+ elsif Platform . unix?
87
+ WebDriver . logger . warn ( 'Selenium Manager binary may not be compatible with Unix; verify settings' ,
88
+ id : %i[ selenium_manager unix_binary ] )
89
+ "#{ directory } /linux/selenium-manager"
86
90
end
91
+ rescue Error ::WebDriverError => e
92
+ raise Error ::WebDriverError , "Unable to obtain Selenium Manager binary for #{ e . message } "
87
93
end )
88
94
89
95
validate_location ( location )
You can’t perform that action at this time.
0 commit comments