gitlab-org--gitlab-foss/spec/support/search_helpers.rb
2016-11-08 12:03:23 +02:00

5 lines
149 B
Ruby

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