Sha256: ec7f5ca6d239648357226197e4c4929b12de3eb694b84c4c31a926eec9c1e5ad
Contents?: true
Size: 1003 Bytes
Versions: 3
Compression:
Stored size: 1003 Bytes
Contents
require 'websocket' module Selenium module WebDriver module Safari class << self def path=(path) Platform.assert_executable(path) @path = path end def path @path ||= ( path = case Platform.os when :windows # TODO: improve this File.join(ENV['ProgramFiles'], 'Safari', 'Safari.exe') when :macosx "/Applications/Safari.app/Contents/MacOS/Safari" else Platform.find_binary("Safari") end unless File.file?(path) && File.executable?(path) raise Error::WebDriverError, "unable to find the Safari executable, please set Selenium::WebDriver::Safari.path= or add it to your PATH." end path ) end end end end end require 'selenium/webdriver/safari/browser' require 'selenium/webdriver/safari/server' require 'selenium/webdriver/safari/bridge'
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
selenium-webdriver-2.31.0 | lib/selenium/webdriver/safari.rb |
selenium-webdriver-2.30.0 | lib/selenium/webdriver/safari.rb |
selenium-webdriver-2.29.0 | lib/selenium/webdriver/safari.rb |