Sha256: cfd50f3db499e2077c567e7ff4b18d6e0c83a41fe42e8a9e5bc5b595693e5f78

Contents?: true

Size: 417 Bytes

Versions: 59

Compression:

Stored size: 417 Bytes

Contents

module TestCentricity
  class FileField < UIElement
    def initialize(parent, locator, context)
      @parent  = parent
      @locator = locator
      @context = context
      @type    = :filefield
      @alt_locator = nil
    end

    def attach_file(file_path)
      Capybara.ignore_hidden_elements = false
      page.attach_file(@locator, file_path)
      Capybara.ignore_hidden_elements = true
    end
  end
end

Version data entries

59 entries across 59 versions & 1 rubygems

Version Path
testcentricity_web-0.8.3 lib/testcentricity_web/elements/file_field.rb
testcentricity_web-0.8.2 lib/testcentricity_web/elements/file_field.rb
testcentricity_web-0.8.1 lib/testcentricity_web/elements/file_field.rb
testcentricity_web-0.8.0 lib/testcentricity_web/elements/file_field.rb
testcentricity_web-0.7.9 lib/testcentricity_web/elements/file_field.rb
testcentricity_web-0.7.8 lib/testcentricity_web/elements/file_field.rb
testcentricity_web-0.7.7 lib/testcentricity_web/elements/file_field.rb
testcentricity_web-0.7.6 lib/testcentricity_web/elements/file_field.rb
testcentricity_web-0.7.5 lib/testcentricity_web/elements/file_field.rb
testcentricity_web-0.7.4 lib/testcentricity_web/elements/file_field.rb
testcentricity_web-0.7.3 lib/testcentricity_web/elements/file_field.rb
testcentricity_web-0.7.2 lib/testcentricity_web/elements/file_field.rb
testcentricity_web-0.7.1 lib/testcentricity_web/elements/file_field.rb
testcentricity_web-0.7.0 lib/testcentricity_web/elements/file_field.rb
testcentricity_web-0.6.9 lib/testcentricity_web/elements/file_field.rb
testcentricity_web-0.6.8 lib/testcentricity_web/elements/file_field.rb
testcentricity_web-0.6.7 lib/testcentricity_web/elements/file_field.rb
testcentricity_web-0.6.6.1 lib/testcentricity_web/elements/file_field.rb
testcentricity_web-0.6.6 lib/testcentricity_web/elements/file_field.rb