mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
9 lines
193 B
Ruby
9 lines
193 B
Ruby
# frozen_string_literal: true
|
|
|
|
module TableHelper
|
|
# Selector for table row that has the given string
|
|
def row_containing(value)
|
|
find(:xpath, "(//tr[contains(., '#{value}')])")
|
|
end
|
|
end
|