MDL-49445 behat: selectors should match the most specific tr or li
authorTim Hunt <T.J.Hunt@open.ac.uk>
Mon, 9 Mar 2015 13:30:24 +0000 (13:30 +0000)
committerTim Hunt <T.J.Hunt@open.ac.uk>
Fri, 13 Mar 2015 14:28:13 +0000 (14:28 +0000)
commit5954a9de10b81d01dd7f0c6f995cc680701654ad
tree06476478afd2eebed20be3fb4a7961984657d62c
parent06122e46fd16891787a08e9e3125465bea83eaf5
MDL-49445 behat: selectors should match the most specific tr or li

I also fixed the text rule, which already did this, to use the same
idiom. It is unnecessarily inefficient to count all the things and
compare to 0. Not exists should be faster.

Also, updated all the selectors here to consistently start relative to
the current node (.//, not //).
lib/behat/classes/behat_selectors.php