Behat: Correctly quote selector in dropdown step

This commit is contained in:
Ingo Schommer 2013-09-14 19:45:01 +02:00
parent c9047a386f
commit 2fbe0c39f2

View File

@ -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;