Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ffaceb
)
MDL-50116 behat: Fixed xpath for selecting table row
author
Rajesh Taneja
<rajesh@moodle.com>
Tue, 19 May 2015 05:32:32 +0000
(13:32 +0800)
committer
Rajesh Taneja
<rajesh@moodle.com>
Tue, 19 May 2015 05:32:32 +0000
(13:32 +0800)
lib/tests/behat/behat_general.php
patch
|
blob
|
blame
|
history
diff --git
a/lib/tests/behat/behat_general.php
b/lib/tests/behat/behat_general.php
index
e467d45
..
31fd15c
100644
(file)
--- a/
lib/tests/behat/behat_general.php
+++ b/
lib/tests/behat/behat_general.php
@@
-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 . ")]";