Sha256: 11290e7fe54148eb99243e6c18c7b73b4423165f722e34b336eac1a0049c195c

Contents?: true

Size: 245 Bytes

Versions: 29

Compression:

Stored size: 245 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

29 entries across 29 versions & 1 rubygems

Version Path
agilibox-1.5.12 lib/agilibox/cucumber_helpers/capybara_selectors.rb
agilibox-1.5.11 lib/agilibox/cucumber_helpers/capybara_selectors.rb
agilibox-1.5.10 lib/agilibox/cucumber_helpers/capybara_selectors.rb
agilibox-1.5.9 lib/agilibox/cucumber_helpers/capybara_selectors.rb
agilibox-1.5.8 lib/agilibox/cucumber_helpers/capybara_selectors.rb
agilibox-1.5.7 lib/agilibox/cucumber_helpers/capybara_selectors.rb
agilibox-1.5.6 lib/agilibox/cucumber_helpers/capybara_selectors.rb
agilibox-1.5.5 lib/agilibox/cucumber_helpers/capybara_selectors.rb
agilibox-1.5.4 lib/agilibox/cucumber_helpers/capybara_selectors.rb