Sha256: f6b05c42eae1f35e67240a49a964d6a083817f320902a382363314978085191f
Contents?: true
Size: 1.14 KB
Versions: 11
Compression:
Stored size: 1.14 KB
Contents
require 'websocket' require 'pathname' 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 Platform.find_in_program_files("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 def resource_path @resource_path ||= Pathname.new(File.expand_path("../safari/resources", __FILE__)) end end end end end require 'selenium/webdriver/safari/browser' require 'selenium/webdriver/safari/server' require 'selenium/webdriver/safari/extension' require 'selenium/webdriver/safari/bridge'
Version data entries
11 entries across 11 versions & 2 rubygems