From 689451731cd2ca3fc844b491f681745bf95bcc8a Mon Sep 17 00:00:00 2001 From: David Monllao Date: Tue, 15 Apr 2014 20:13:44 +0700 Subject: [PATCH] MDL-45165 behat: Adding text selector Same behaviour than I should see step, it looks for the text in the node + descendants, but, to get the lower level match discards the nodes with children that also contains the same text. --- lib/behat/classes/behat_selectors.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/behat/classes/behat_selectors.php b/lib/behat/classes/behat_selectors.php index 2d90700358c..ddacab42998 100644 --- a/lib/behat/classes/behat_selectors.php +++ b/lib/behat/classes/behat_selectors.php @@ -70,6 +70,7 @@ class behat_selectors { 'table' => 'table', 'field' => 'field', 'fieldset' => 'fieldset', + 'text' => 'text', 'css_element' => 'css_element', 'xpath_element' => 'xpath_element' ); @@ -83,7 +84,10 @@ class behat_selectors { * @var XPaths for moodle elements. */ protected static $moodleselectors = array( - 'dialogue' => << << <<