Sha256: 61c11529c98cc5a0f92d25c5992e9dd5828d11162eea6a6f051328ead278061a

Contents?: true

Size: 618 Bytes

Versions: 1

Compression:

Stored size: 618 Bytes

Contents

module Fluent
  module WebElements
    class TextField < WebElement

      def initialize(web_element, platform)
        @web_element = web_element
        include_platform_specifics_for platform
      end
      
      def append(text)
        web_element.send_keys(text)
      end

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

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fluent-0.2.0 lib/fluent/web_elements/text_field.rb