Sha256: e1579d013097c0d383a30958f8e49c06ee6850e672f25a0455028d6cda95bc78

Contents?: true

Size: 247 Bytes

Versions: 6

Compression:

Stored size: 247 Bytes

Contents

Capybara.add_selector(:agilibox_clickable) do
  xpath do |locator, **options|
    self.class.all
      .values_at(:link, :button, :label)
      .map { |selector| instance_exec(locator, **options, &selector.xpath) }
      .reduce(:union)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
agilibox-1.9.16 lib/agilibox/cucumber_helpers/capybara_selectors.rb
agilibox-1.9.15 lib/agilibox/cucumber_helpers/capybara_selectors.rb
agilibox-1.9.14 lib/agilibox/cucumber_helpers/capybara_selectors.rb
agilibox-1.9.13 lib/agilibox/cucumber_helpers/capybara_selectors.rb
agilibox-1.9.12 lib/agilibox/cucumber_helpers/capybara_selectors.rb
agilibox-1.9.11 lib/agilibox/cucumber_helpers/capybara_selectors.rb