Sha256: 2aa1eedb19d9646000b157c3e964fb4f8d3d9796f33fd746feb02ba200e02a27

Contents?: true

Size: 605 Bytes

Versions: 7

Compression:

Stored size: 605 Bytes

Contents

module Fluent
  module WebElements
    class Image < 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/image'
          self.class.send :include, Fluent::Platforms::WatirWebDriver::Image
        end
      end

    end

    ::Fluent::WebElements.class_for_tag[:img] = ::Fluent::WebElements::Image
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
fluent-0.7.5 lib/fluent/web_elements/image.rb
fluent-0.7.4 lib/fluent/web_elements/image.rb
fluent-0.7.3 lib/fluent/web_elements/image.rb
fluent-0.7.2 lib/fluent/web_elements/image.rb
fluent-0.7.1 lib/fluent/web_elements/image.rb
fluent-0.7.0 lib/fluent/web_elements/image.rb
fluent-0.6.0 lib/fluent/web_elements/image.rb