Merge pull request #3755 from chillu/pulls/behat-dropdown

Behat: Ignore native dropdowns if they're not visible
This commit is contained in:
Daniel Hensby 2015-01-07 00:18:36 +03:00
commit 97a9e499a0

View File

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