module <%= name.split('_').map(&:capitalize).join %> class Results < Base element(:titles) { |text| browser.h3(text: /#{text}/) } def title?(text) titles(text).wait_until(&:present?) true rescue Watir::Wait::TimeoutError false end end end