From 25a49eb6603dae8024e54cdf12909efb9ef9df4d Mon Sep 17 00:00:00 2001 From: David Monllao Date: Tue, 15 Apr 2014 20:13:44 +0700 Subject: [PATCH] MDL-44621 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 cedf70eac30..a46930ee2f3 100644 --- a/lib/behat/classes/behat_selectors.php +++ b/lib/behat/classes/behat_selectors.php @@ -69,6 +69,7 @@ class behat_selectors { 'table' => 'table', 'field' => 'field', 'fieldset' => 'fieldset', + 'text' => 'text', 'css_element' => 'css_element', 'xpath_element' => 'xpath_element' ); @@ -82,7 +83,10 @@ class behat_selectors { * @var XPaths for moodle elements. */ protected static $moodleselectors = array( - 'dialogue' => << << <<