Method: Selenium::WebDriver::Safari.path
- Defined in:
- lib/selenium/webdriver/safari.rb
.path ⇒ Object
49 50 51 52 53 54 55 |
# File 'lib/selenium/webdriver/safari.rb', line 49 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 |