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-1.0.5 lib/testcentricity_web/elements/file_field.rb
testcentricity_web-1.0.4 lib/testcentricity_web/elements/file_field.rb
testcentricity_web-1.0.3 lib/testcentricity_web/elements/file_field.rb
testcentricity_web-1.0.2 lib/testcentricity_web/elements/file_field.rb
testcentricity_web-1.0.1 lib/testcentricity_web/elements/file_field.rb
testcentricity_web-1.0.0.1 lib/testcentricity_web/elements/file_field.rb
testcentricity_web-1.0.0 lib/testcentricity_web/elements/file_field.rb
testcentricity_web-0.9.9.9 lib/testcentricity_web/elements/file_field.rb
testcentricity_web-0.9.9.8 lib/testcentricity_web/elements/file_field.rb
testcentricity_web-0.9.9.7 lib/testcentricity_web/elements/file_field.rb
testcentricity_web-0.9.9.6 lib/testcentricity_web/elements/file_field.rb
testcentricity_web-0.9.9.5 lib/testcentricity_web/elements/file_field.rb
testcentricity_web-0.9.9.4 lib/testcentricity_web/elements/file_field.rb
testcentricity_web-0.9.9.3 lib/testcentricity_web/elements/file_field.rb
testcentricity_web-0.9.9.2 lib/testcentricity_web/elements/file_field.rb
testcentricity_web-0.9.9.1 lib/testcentricity_web/elements/file_field.rb
testcentricity_web-0.9.9 lib/testcentricity_web/elements/file_field.rb
testcentricity_web-0.9.8 lib/testcentricity_web/elements/file_field.rb
testcentricity_web-0.9.7 lib/testcentricity_web/elements/file_field.rb
testcentricity_web-0.9.6.3 lib/testcentricity_web/elements/file_field.rb