mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #3755 from chillu/pulls/behat-dropdown
Behat: Ignore native dropdowns if they're not visible
This commit is contained in:
commit
97a9e499a0
@ -418,7 +418,7 @@ class CmsUiContext extends BehatContext {
|
||||
'named',
|
||||
array('select', $this->getSession()->getSelectorsHandler()->xpathLiteral($field))
|
||||
);
|
||||
if($nativeField) {
|
||||
if($nativeField && $nativeField->isVisible()) {
|
||||
$nativeField->selectOption($value);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user