Sha256: 9337682e7e499d3c79c5096a66646642c2efcbf36287b9409ce074936a5c5699

Contents?: true

Size: 454 Bytes

Versions: 4

Compression:

Stored size: 454 Bytes

Contents

module PageObject
  module Elements
    class FileField < Element

      def initialize(element, platform)
        @element = element
        include_platform_for platform
      end

      protected

      def self.watir_finders
        super + [:title, :label]
      end

      def self.selenium_finders
        super + [:title, :label]
      end

    end

    ::PageObject::Elements.type_to_class[:file] = ::PageObject::Elements::FileField

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
page-object-2.0.0 lib/page-object/elements/file_field.rb
page-object-1.2.2 lib/page-object/elements/file_field.rb
page-object-1.2.1 lib/page-object/elements/file_field.rb
page-object-1.2.0 lib/page-object/elements/file_field.rb