debian-mirror-gitlab/spec/support/helpers/search_helpers.rb
2019-10-12 21:52:04 +05:30

7 lines
180 B
Ruby

# frozen_string_literal: true
module SearchHelpers
def select_filter(name)
find(:xpath, "//ul[contains(@class, 'search-filter')]//a[contains(.,'#{name}')]").click
end
end