module Selenium::WebDriver::Safari
def path
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
def path=(path)
def path=(path) Platform.assert_executable(path) @path = path end
def technology_preview
def technology_preview '/Applications/Safari Technology Preview.app/Contents/MacOS/safaridriver' end
def technology_preview!
def technology_preview! Service.driver_path = technology_preview @use_technology_preview = true end
def technology_preview?
def technology_preview? use_technology_preview end