Sha256: fd78c7e708bcb2206706c1bd85184b5eef77d5f901b01efa265a7307925e9ae4

Contents?: true

Size: 388 Bytes

Versions: 4

Compression:

Stored size: 388 Bytes

Contents

# encoding: utf-8
module Watir
  class FileField < Input
    identifier :type => 'file'

    container_method  :file_field
    collection_method :file_fields

    def set(value)
      assert_exists
      @element.send_keys value
    end

    def value
      # since 'value' is an attribute on input fields, we override this here
      assert_exists
      @element.value
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
watir-webdriver-0.0.1.dev4 lib/watir-webdriver/elements/file_field.rb
watir-webdriver-0.0.1.dev3 lib/watir-webdriver/elements/file_field.rb
watir-webdriver-0.0.1.dev2 lib/watir-webdriver/elements/file_field.rb
watir-webdriver-0.0.1.dev lib/watir-webdriver/elements/file_field.rb