Module: Selenium::WebDriver::Safari
- Defined in:
- lib/selenium/webdriver/safari.rb,
lib/selenium/webdriver/safari/bridge.rb,
lib/selenium/webdriver/safari/driver.rb,
lib/selenium/webdriver/safari/options.rb,
lib/selenium/webdriver/safari/service.rb
Defined Under Namespace
Modules: Bridge
Classes: Driver, Options, Service
Class Method Summary
collapse
Class Method Details
.driver_path=(path) ⇒ Object
.path ⇒ Object
41
42
43
44
45
46
47
|
# File 'lib/selenium/webdriver/safari.rb', line 41
def path
@path ||= '/Applications/Safari.app/Contents/MacOS/Safari'
return @path if File.file?(@path) && File.executable?(@path)
raise Error::WebDriverError, 'Safari is only supported on Mac' unless Platform.os.mac?
raise Error::WebDriverError, 'Unable to find Safari'
end
|
.path=(path) ⇒ Object
36
37
38
39
|
# File 'lib/selenium/webdriver/safari.rb', line 36
def path=(path)
Platform.assert_executable(path)
@path = path
end
|
.technology_preview ⇒ Object
28
29
30
|
# File 'lib/selenium/webdriver/safari.rb', line 28
def technology_preview
"/Applications/Safari\ Technology\ Preview.app/Contents/MacOS/safaridriver"
end
|
.technology_preview! ⇒ Object
32
33
34
|
# File 'lib/selenium/webdriver/safari.rb', line 32
def technology_preview!
self.driver_path = technology_preview
end
|