Sha256: 344aee8028e8a0f1e23b337f7ffac7e0f8cb346a0eed0e68cb47290bfeb6b067
Contents?: true
Size: 398 Bytes
Versions: 29
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
29 entries across 19 versions & 2 rubygems