mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Behat: Correctly quote selector in dropdown step
This commit is contained in:
parent
c9047a386f
commit
2fbe0c39f2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user