From 2fbe0c39f217c04304b8da400068f34e844d4b33 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sat, 14 Sep 2013 19:45:01 +0200 Subject: [PATCH] Behat: Correctly quote selector in dropdown step --- .../SilverStripe/Framework/Test/Behaviour/CmsUiContext.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/behat/features/bootstrap/SilverStripe/Framework/Test/Behaviour/CmsUiContext.php b/tests/behat/features/bootstrap/SilverStripe/Framework/Test/Behaviour/CmsUiContext.php index f4567bba9..e24e84451 100644 --- a/tests/behat/features/bootstrap/SilverStripe/Framework/Test/Behaviour/CmsUiContext.php +++ b/tests/behat/features/bootstrap/SilverStripe/Framework/Test/Behaviour/CmsUiContext.php @@ -340,7 +340,10 @@ class CmsUiContext extends BehatContext $field = $this->fixStepArgument($field); $value = $this->fixStepArgument($value); - $nativeField = $this->getSession()->getPage()->find('named', array('select', $field)); + $nativeField = $this->getSession()->getPage()->find( + 'named', + array('select', $this->getSession()->getSelectorsHandler()->xpathLiteral($field)) + ); if($nativeField) { $nativeField->selectOption($value); return;