Sha256: 5e5fbb1d9421801d6f6f34ac3f8562785ee06498cd40830400f49dc12a95a22e

Contents?: true

Size: 1009 Bytes

Versions: 1

Compression:

Stored size: 1009 Bytes

Contents

require "selenium/chrome/mavericks/version"
require 'selenium-webdriver'

puts "DEPRECATION NOTICE: As of chromedriver 2.6 the bug for which selenium-chrome-mavericks fixes has been resolved. Please remove this gem and go back to use selenium-webdriver gem instead. Thanks! --keyvan"

module Selenium
  module WebDriver
    module Chrome
      class Service
        def initialize(executable_path, port, *extra_args)
          @uri           = URI.parse "http://#{Platform.localhost}:#{port}"
          server_command = [executable_path, "--port=#{port}", *extra_args]

          # Look I can't wait for a fix to chromedriver or selenium-webdriver's (or capybara's?) arg passing
          server_command.push('--verbose') # so just work in Mavericks already!!!!!!!! kthx

          @process       = ChildProcess.build(*server_command)
          @socket_poller = SocketPoller.new Platform.localhost, port, START_TIMEOUT

          @process.io.inherit! if $DEBUG == true
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
selenium-chrome-mavericks-2.37.01 lib/selenium/chrome/mavericks.rb