Sha256: ef1e4d872ba5b0b6deea3601adfb845c1eaa00bf3a4c92b4635fd1d5a20835c1

Contents?: true

Size: 398 Bytes

Versions: 16

Compression:

Stored size: 398 Bytes

Contents

# frozen_string_literal: true

Capybara.add_selector(:file_field, locator_type: [String, Symbol]) do
  label 'file field'
  xpath do |locator, allow_self: nil, **options|
    xpath = XPath.axis(allow_self ? :'descendant-or-self' : :descendant, :input)[
      XPath.attr(:type) == 'file'
    ]
    locate_field(xpath, locator, **options)
  end

  filter_set(:_field, %i[disabled multiple name])
end

Version data entries

16 entries across 16 versions & 4 rubygems

Version Path
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/capybara-3.40.0/lib/capybara/selector/definition/file_field.rb
capybara-3.40.0 lib/capybara/selector/definition/file_field.rb
capybara-3.39.2 lib/capybara/selector/definition/file_field.rb
capybara-3.39.1 lib/capybara/selector/definition/file_field.rb
capybara-3.39.0 lib/capybara/selector/definition/file_field.rb
tdiary-5.2.4 vendor/bundle/ruby/3.1.0/gems/capybara-3.36.0/lib/capybara/selector/definition/file_field.rb
capybara-3.38.0 lib/capybara/selector/definition/file_field.rb
tdiary-5.2.3 vendor/bundle/ruby/3.1.0/gems/capybara-3.37.1/lib/capybara/selector/definition/file_field.rb
tdiary-5.2.2 vendor/bundle/ruby/3.1.0/gems/capybara-3.37.1/lib/capybara/selector/definition/file_field.rb
capybara-3.37.1 lib/capybara/selector/definition/file_field.rb
capybara-3.37.0 lib/capybara/selector/definition/file_field.rb
tdiary-5.2.1 vendor/bundle/ruby/3.1.0/gems/capybara-3.36.0/lib/capybara/selector/definition/file_field.rb
tdiary-5.2.0 vendor/bundle/ruby/3.0.0/gems/capybara-3.36.0/lib/capybara/selector/definition/file_field.rb
date_n_time_picker_activeadmin-0.1.2 vendor/bundle/ruby/2.6.0/gems/capybara-3.36.0/lib/capybara/selector/definition/file_field.rb
date_n_time_picker_activeadmin-0.1.1 vendor/bundle/ruby/2.6.0/gems/capybara-3.36.0/lib/capybara/selector/definition/file_field.rb
capybara-3.36.0 lib/capybara/selector/definition/file_field.rb