Sha256: 71d047e304c8f1290910646ef7b9cb083155c57ca662b57898430166a6d75c61

Contents?: true

Size: 1006 Bytes

Versions: 27

Compression:

Stored size: 1006 Bytes

Contents

require 'libwebsocket'

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

27 entries across 27 versions & 2 rubygems

Version Path
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/selenium-webdriver-2.27.2/lib/selenium/webdriver/safari.rb
selenium-webdriver-2.27.2 lib/selenium/webdriver/safari.rb
selenium-webdriver-2.27.1 lib/selenium/webdriver/safari.rb
selenium-webdriver-2.27.0 lib/selenium/webdriver/safari.rb
selenium-webdriver-2.27.0.rc1 lib/selenium/webdriver/safari.rb
selenium-webdriver-2.26.0 lib/selenium/webdriver/safari.rb
selenium-webdriver-2.26.0.rc1 lib/selenium/webdriver/safari.rb
selenium-webdriver-2.25.0 lib/selenium/webdriver/safari.rb
selenium-webdriver-2.25.0.rc1 lib/selenium/webdriver/safari.rb
sunrise-cms-0.3.3 vendor/bundle/ruby/1.9.1/gems/selenium-webdriver-2.21.2/lib/selenium/webdriver/safari.rb
sunrise-cms-0.3.2 vendor/bundle/ruby/1.9.1/gems/selenium-webdriver-2.21.2/lib/selenium/webdriver/safari.rb
sunrise-cms-0.3.1 vendor/bundle/ruby/1.9.1/gems/selenium-webdriver-2.21.2/lib/selenium/webdriver/safari.rb
selenium-webdriver-2.24.0 lib/selenium/webdriver/safari.rb
sunrise-cms-0.3.0 vendor/bundle/ruby/1.9.1/gems/selenium-webdriver-2.21.2/lib/selenium/webdriver/safari.rb
selenium-webdriver-2.22.2 lib/selenium/webdriver/safari.rb
selenium-webdriver-2.22.2.rc2 lib/selenium/webdriver/safari.rb
selenium-webdriver-2.22.2.rc1 lib/selenium/webdriver/safari.rb
selenium-webdriver-2.22.1 lib/selenium/webdriver/safari.rb
selenium-webdriver-2.22.0 lib/selenium/webdriver/safari.rb
selenium-webdriver-2.22.0.rc3 lib/selenium/webdriver/safari.rb