search_helpers.rb 149 Bytes EditWeb IDE 1 2 3 4 5 module SearchHelpers def select_filter(name) find(:xpath, "//ul[contains(@class, 'search-filter')]//a[contains(.,'#{name}')]").click end end