MDL-50116 behat: Fixed xpath for selecting table row
authorRajesh Taneja <rajesh@moodle.com>
Tue, 19 May 2015 05:32:32 +0000 (13:32 +0800)
committerRajesh Taneja <rajesh@moodle.com>
Tue, 19 May 2015 05:32:32 +0000 (13:32 +0800)
lib/tests/behat/behat_general.php

index e467d45..31fd15c 100644 (file)
@@ -1093,7 +1093,7 @@ class behat_general extends behat_base {
 
         // 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 . ")]";