debian-mirror-gitlab/spec/support/helpers/search_helpers.rb

6 lines
149 B
Ruby
Raw Normal View History

2017-08-17 22:00:37 +05:30
module SearchHelpers
def select_filter(name)
find(:xpath, "//ul[contains(@class, 'search-filter')]//a[contains(.,'#{name}')]").click
end
end