Sha256: 4d4dc4520ccb2dde42372592584fd37009cceb2d917db8047dacf6709473dc58

Contents?: true

Size: 1.52 KB

Versions: 5

Compression:

Stored size: 1.52 KB

Contents

require "tmpdir"
require "fileutils"

def have_yajl?
  require "yajl/json_gem"
  true
rescue LoadError
  false
end

def have_json?
  require "json"
  true
rescue LoadError
  false
end

unless have_yajl? || have_json?
  raise LoadError, <<-END

       You need to require rubygems or install one of these gems:

           yajl-ruby (best on MRI)
           json
           json-jruby (native JRuby)
           json_pure (any platform)

  END
end


require "selenium/webdriver/core_ext/dir"
require "selenium/webdriver/error"
require "selenium/webdriver/platform"
require "selenium/webdriver/child_process"
require "selenium/webdriver/target_locator"
require "selenium/webdriver/navigation"
require "selenium/webdriver/options"
require "selenium/webdriver/find"
require "selenium/webdriver/driver_extensions/takes_screenshot"
require "selenium/webdriver/keys"
require "selenium/webdriver/bridge_helper"
require "selenium/webdriver/driver"
require "selenium/webdriver/element"

module Selenium
  module WebDriver
    Point     = Struct.new(:x, :y)
    Dimension = Struct.new(:width, :heigth)

    autoload :IE,      'selenium/webdriver/ie'
    autoload :Remote,  'selenium/webdriver/remote'
    autoload :Chrome,  'selenium/webdriver/chrome'
    autoload :Firefox, 'selenium/webdriver/firefox'

    def self.root
      @root ||= File.expand_path(File.join(File.dirname(__FILE__), "..", "..", "..", "..", ".."))
    end

    def self.for(*args)
      WebDriver::Driver.for(*args)
    end

  end # WebDriver
end # Selenium

Thread.abort_on_exception = true

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
rainux-selenium-webdriver-0.0.17 common/src/rb/lib/selenium/webdriver.rb
selenium-webdriver-0.0.17 common/src/rb/lib/selenium/webdriver.rb
selenium-webdriver-0.0.16 common/src/rb/lib/selenium/webdriver.rb
selenium-webdriver-0.0.15 common/src/rb/lib/selenium/webdriver.rb
selenium-webdriver-0.0.14 common/src/rb/lib/selenium/webdriver.rb