Skip to content

Commit

Permalink
MDL-50116 behat: Fixed xpath for selecting table row
Browse files Browse the repository at this point in the history
  • Loading branch information
Rajesh Taneja committed May 19, 2015
1 parent 2ffaceb commit d31e69f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tests/behat/behat_general.php
Expand Up @@ -1093,7 +1093,7 @@ public function row_column_of_table_should_contain($row, $column, $table, $value

// Check if value exists in specific row/column.
// Get row xpath.
$rowxpath = $tablexpath."/tbody/tr[th[normalize-space(.)=" . $rowliteral . "] | td[normalize-space(.)=" . $rowliteral . "]]";
$rowxpath = $tablexpath."/tbody/tr[th[normalize-space(.)=" . $rowliteral . "] or td[normalize-space(.)=" . $rowliteral . "]]";

$columnvaluexpath = $rowxpath . $columnpositionxpath . "[contains(normalize-space(.)," . $valueliteral . ")]";

Expand Down

0 comments on commit d31e69f

Please sign in to comment.