gitlab-org--gitlab-foss/spec/support/search_helpers.rb

6 lines
149 B
Ruby
Raw Normal View History

2016-11-07 13:36:58 -05:00
module SearchHelpers
def select_filter(name)
find(:xpath, "//ul[contains(@class, 'search-filter')]//a[contains(.,'#{name}')]").click
end
end