Sha256: 894cb5feb9da21abfbc480497f676d1f4cc3b2730c82b31e5cc9c3749d482257

Contents?: true

Size: 629 Bytes

Versions: 10

Compression:

Stored size: 629 Bytes

Contents

module Fluent
  module WebElements
    class CheckBox < WebElement

      def initialize(web_element, platform)
        @web_element = web_element
        include_platform_specifics_for platform
      end

      def include_platform_specifics_for(platform)
        super
        if platform[:platform] == :watir_webdriver
          require 'fluent/platform_watir/platform_web_elements/checkbox'
          self.class.send :include, Fluent::Platforms::WatirWebDriver::CheckBox
        end
      end
      
    end

    ::Fluent::WebElements.class_for_type[:checkbox] = ::Fluent::WebElements::CheckBox
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
fluent-0.7.5 lib/fluent/web_elements/checkbox.rb
fluent-0.7.4 lib/fluent/web_elements/checkbox.rb
fluent-0.7.3 lib/fluent/web_elements/checkbox.rb
fluent-0.7.2 lib/fluent/web_elements/checkbox.rb
fluent-0.7.1 lib/fluent/web_elements/checkbox.rb
fluent-0.7.0 lib/fluent/web_elements/checkbox.rb
fluent-0.6.0 lib/fluent/web_elements/checkbox.rb
fluent-0.5.0 lib/fluent/web_elements/checkbox.rb
fluent-0.4.0 lib/fluent/web_elements/checkbox.rb
fluent-0.3.0 lib/fluent/web_elements/checkbox.rb