mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-03 02:21:33 +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
|