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/service.rb
Defined Under Namespace
Modules: Bridge
Classes: Driver, Service
Class Method Summary
collapse
Class Method Details
.driver_path ⇒ Object
51
52
53
|
# File 'lib/selenium/webdriver/safari.rb', line 51
def driver_path
@driver_path ||= nil
end
|
.driver_path=(path) ⇒ Object
46
47
48
49
|
# File 'lib/selenium/webdriver/safari.rb', line 46
def driver_path=(path)
Platform.assert_executable path
@driver_path = path
end
|
.path ⇒ Object
39
40
41
42
43
44
|
# File 'lib/selenium/webdriver/safari.rb', line 39
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
34
35
36
37
|
# File 'lib/selenium/webdriver/safari.rb', line 34
def path=(path)
Platform.assert_executable(path)
@path = path
end
|
.technology_preview ⇒ Object
26
27
28
|
# File 'lib/selenium/webdriver/safari.rb', line 26
def technology_preview
"/Applications/Safari\ Technology\ Preview.app/Contents/MacOS/safaridriver"
end
|
.technology_preview! ⇒ Object
30
31
32
|
# File 'lib/selenium/webdriver/safari.rb', line 30
def technology_preview!
self.driver_path = technology_preview
end
|