Sha256: 788236dd46eb92014c48c2d79e8540caa93380300e3e49537cc4f7442dd1c194

Contents?: true

Size: 1.97 KB

Versions: 12

Compression:

Stored size: 1.97 KB

Contents

# encoding: utf-8
require 'selenium-webdriver'
require 'json'

require 'watir-webdriver/version'
require 'watir-webdriver/wait'
require 'watir-webdriver/exception'
require 'watir-webdriver/xpath_support'
require 'watir-webdriver/window_switching'
require 'watir-webdriver/container'
require 'watir-webdriver/locators/element_locator'
require 'watir-webdriver/locators/button_locator'
require 'watir-webdriver/locators/text_field_locator'
require 'watir-webdriver/locators/child_row_locator'
require 'watir-webdriver/locators/child_cell_locator'
require 'watir-webdriver/browser'

module Watir
  include Selenium

  class << self
    def tag_to_class
      @tag_to_class ||= {}
    end

    def element_class_for(tag_name)
      tag_to_class[tag_name.to_sym] || HTMLElement
    end
  end

end

require 'watir-webdriver/attribute_helper'
require 'watir-webdriver/row_container'
require 'watir-webdriver/cell_container'
require 'watir-webdriver/element_collection'
require 'watir-webdriver/elements/element'
require 'watir-webdriver/elements/generated'
require 'watir-webdriver/elements/frame'
require 'watir-webdriver/elements/input'
require 'watir-webdriver/elements/button'
require 'watir-webdriver/elements/checkbox'
require 'watir-webdriver/elements/file_field'
require 'watir-webdriver/elements/image'
require 'watir-webdriver/elements/link'
require 'watir-webdriver/elements/font'
require 'watir-webdriver/elements/radio'
require 'watir-webdriver/elements/text_field'
require 'watir-webdriver/elements/hidden'
require 'watir-webdriver/elements/select'
require 'watir-webdriver/elements/form'
require 'watir-webdriver/elements/option'
require 'watir-webdriver/elements/table'
require 'watir-webdriver/elements/table_row'
require 'watir-webdriver/elements/table_cell'
require 'watir-webdriver/elements/table_section'

Watir.tag_to_class.freeze

# undefine deprecated methods to use them for Element attributes
class Object
  undef_method :id if method_defined? "id"
  undef_method :type if method_defined? "type"
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
watir-webdriver-0.2.8 lib/watir-webdriver.rb
watir-webdriver-0.2.7 lib/watir-webdriver.rb
watir-webdriver-0.2.6 lib/watir-webdriver.rb
watir-webdriver-0.2.5 lib/watir-webdriver.rb
watir-webdriver-0.2.4 lib/watir-webdriver.rb
watir-webdriver-0.2.3 lib/watir-webdriver.rb
watir-webdriver-0.2.2 lib/watir-webdriver.rb
watir-webdriver-0.2.1 lib/watir-webdriver.rb
watir-webdriver-0.2.0 lib/watir-webdriver.rb
watir-webdriver-0.2.0.dev2 lib/watir-webdriver.rb
watir-webdriver-0.2.0.dev lib/watir-webdriver.rb
watir-webdriver-0.1.9 lib/watir-webdriver.rb