Module: Selenium::WebDriver::Chrome
- Defined in:
- lib/selenium/webdriver/chrome.rb,
lib/selenium/webdriver/chrome/bridge.rb,
lib/selenium/webdriver/chrome/profile.rb,
lib/selenium/webdriver/chrome/service.rb
Defined Under Namespace
Classes: Bridge, Profile, Service
Class Method Summary
collapse
Class Method Details
.driver_path(warning = true) ⇒ Object
39
40
41
42
43
44
45
46
47
48
|
# File 'lib/selenium/webdriver/chrome.rb', line 39
def self.driver_path(warning = true)
if warning
warn <<-DEPRECATE.gsub(/\n +| {2,}/, ' ').freeze
[DEPRECATION] `driver_path` is deprecated. Pass the driver path as an option instead.
e.g. Selenium::WebDriver.for :chrome, driver_path: '/path'
DEPRECATE
end
@driver_path ||= nil
end
|
.driver_path=(path) ⇒ Object
29
30
31
32
33
34
35
36
37
|
# File 'lib/selenium/webdriver/chrome.rb', line 29
def self.driver_path=(path)
warn <<-DEPRECATE.gsub(/\n +| {2,}/, ' ').freeze
[DEPRECATION] `driver_path=` is deprecated. Pass the driver path as an option instead.
e.g. Selenium::WebDriver.for :chrome, driver_path: '/path'
DEPRECATE
Platform.assert_executable path
@driver_path = path
end
|
.path ⇒ Object
55
56
57
|
# File 'lib/selenium/webdriver/chrome.rb', line 55
def self.path
@path ||= nil
end
|
.path=(path) ⇒ Object
50
51
52
53
|
# File 'lib/selenium/webdriver/chrome.rb', line 50
def self.path=(path)
Platform.assert_executable path
@path = path
end
|