You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The commit adds following public accessors:
Selenium::WebDriver::Chrome.driver_path
Selenium::WebDriver::Edge.driver_path
Selenium::WebDriver::Firefox.driver_path (marionette-only)
All the previously used Selenium::WebDriver::<browser>::Service.executable_path
methods are now deprecated (even though they were part of private API)
Copy file name to clipboardExpand all lines: rb/lib/selenium/webdriver/chrome.rb
+14-2Lines changed: 14 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -25,10 +25,22 @@
25
25
26
26
moduleSelenium
27
27
moduleWebDriver
28
-
29
28
moduleChrome
29
+
MISSING_TEXT="Unable to find the chromedriver executable. Please download the server from http://chromedriver.storage.googleapis.com/index.html and place it somewhere on your PATH. More info at https://github.com/SeleniumHQ/selenium/wiki/ChromeDriver."
Copy file name to clipboardExpand all lines: rb/lib/selenium/webdriver/chrome/service.rb
+3-9Lines changed: 3 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -27,20 +27,14 @@ module Chrome
27
27
28
28
classService < WebDriver::Service
29
29
DEFAULT_PORT=9515
30
-
MISSING_TEXT="Unable to find the chromedriver executable. Please download the server from http://chromedriver.storage.googleapis.com/index.html and place it somewhere on your PATH. More info at https://github.com/SeleniumHQ/selenium/wiki/ChromeDriver."
31
30
32
31
defself.executable_path
33
-
@executable_path ||= (
34
-
path=Platform.find_binary"chromedriver"
35
-
pathorraiseError::WebDriverError,MISSING_TEXT
36
-
Platform.assert_executablepath
37
-
38
-
path
39
-
)
32
+
warn"Selenium::WebDriver::Chrome::Service.executable_path is deprecated, please use Selenium::WebDriver::Chrome.driver_path instead"
Copy file name to clipboardExpand all lines: rb/lib/selenium/webdriver/edge.rb
+14-2Lines changed: 14 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -24,10 +24,22 @@
24
24
25
25
moduleSelenium
26
26
moduleWebDriver
27
-
28
27
moduleEdge
28
+
MISSING_TEXT="Unable to find MicrosoftWebDriver. Please download the server from https://www.microsoft.com/en-us/download/details.aspx?id=48212. More info at https://github.com/SeleniumHQ/selenium/wiki/MicrosoftWebDriver."
Copy file name to clipboardExpand all lines: rb/lib/selenium/webdriver/edge/service.rb
+4-10Lines changed: 4 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -26,21 +26,15 @@ module Edge
26
26
#
27
27
28
28
classService
29
-
DEFAULT_PORT=17556
30
-
MISSING_TEXT="Unable to find MicrosoftWebDriver. Please download the server from https://www.microsoft.com/en-us/download/details.aspx?id=48212. More info at https://github.com/SeleniumHQ/selenium/wiki/MicrosoftWebDriver."
29
+
DEFAULT_PORT=17556
31
30
32
31
defself.executable_path
33
-
@executable_path ||= (
34
-
path=Platform.find_binary"MicrosoftWebDriver"
35
-
pathorraiseError::WebDriverError,MISSING_TEXT
36
-
Platform.assert_executablepath
37
-
38
-
path
39
-
)
32
+
warn"Selenium::WebDriver::Edge::Service.executable_path is deprecated, please use Selenium::WebDriver::Edge.driver_path instead"
MISSING_TEXT="Unable to find Mozilla Wires. Please download the executable from https://github.com/jgraham/wires/releases"
Copy file name to clipboardExpand all lines: rb/lib/selenium/webdriver/firefox/service.rb
+3-9Lines changed: 3 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -27,20 +27,14 @@ module Firefox
27
27
28
28
classService < WebDriver::Service
29
29
DEFAULT_PORT=4444
30
-
MISSING_TEXT="Unable to find Mozilla Wires. Please download the executable from https://github.com/jgraham/wires/releases"
31
30
32
31
defself.executable_path
33
-
@executable_path ||= (
34
-
path=Platform.find_binary"wires"
35
-
pathorraiseError::WebDriverError,MISSING_TEXT
36
-
Platform.assert_executablepath
37
-
38
-
path
39
-
)
32
+
warn"Selenium::WebDriver::Firefox::Service.executable_path is deprecated, please use Selenium::WebDriver::Firefox.driver_path instead"
0 commit comments