global
def match_row(row, match_size: false)
def match_row(row, match_size: false) xp = XPath.descendant(:tr)[ if row.is_a? Hash row_match_cells_to_headers(row) else XPath.descendant(:td)[row_match_ordered_cells(row)] end ] xp = xp[XPath.descendant(:td).count.equals(row.size)] if match_size xp end