mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-01 21:58:51 +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);
|
$field = $this->fixStepArgument($field);
|
||||||
$value = $this->fixStepArgument($value);
|
$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) {
|
if($nativeField) {
|
||||||
$nativeField->selectOption($value);
|
$nativeField->selectOption($value);
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user