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.9.6.2 lib/testcentricity_web/elements/file_field.rb
testcentricity_web-0.9.6.1 lib/testcentricity_web/elements/file_field.rb
testcentricity_web-0.9.6 lib/testcentricity_web/elements/file_field.rb
testcentricity_web-0.9.5.1 lib/testcentricity_web/elements/file_field.rb
testcentricity_web-0.9.5 lib/testcentricity_web/elements/file_field.rb
testcentricity_web-0.9.4 lib/testcentricity_web/elements/file_field.rb
testcentricity_web-0.9.3.4 lib/testcentricity_web/elements/file_field.rb
testcentricity_web-0.9.3 lib/testcentricity_web/elements/file_field.rb
testcentricity_web-0.9.2 lib/testcentricity_web/elements/file_field.rb
testcentricity_web-0.9.1.1 lib/testcentricity_web/elements/file_field.rb
testcentricity_web-0.9.1 lib/testcentricity_web/elements/file_field.rb
testcentricity_web-0.9.0.3 lib/testcentricity_web/elements/file_field.rb
testcentricity_web-0.9.0.2 lib/testcentricity_web/elements/file_field.rb
testcentricity_web-0.9.0.1 lib/testcentricity_web/elements/file_field.rb
testcentricity_web-0.9.0 lib/testcentricity_web/elements/file_field.rb
testcentricity_web-0.8.8 lib/testcentricity_web/elements/file_field.rb
testcentricity_web-0.8.7 lib/testcentricity_web/elements/file_field.rb
testcentricity_web-0.8.6 lib/testcentricity_web/elements/file_field.rb
testcentricity_web-0.8.5 lib/testcentricity_web/elements/file_field.rb
testcentricity_web-0.8.4 lib/testcentricity_web/elements/file_field.rb