Skip to content

Commit

Permalink
Fix functional test.
Browse files Browse the repository at this point in the history
  • Loading branch information
nmalevanec committed Jan 2, 2019
1 parent dd04443 commit d0d57e3
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -403,4 +403,21 @@ public function getFileOptionElements()
{
return $this->_rootElement->getElements($this->hintMessage);
}

/**
* @inheritdoc
*/
protected function _fill(array $fields, SimpleElement $element = null)
{
$context = ($element === null) ? $this->_rootElement : $element;
foreach ($fields as $name => $field) {
$element = $this->getElement($context, $field);
if (!$element->isDisabled()) {
$element->getContext()->hover();
$element->setValue($field['value']);
} else {
throw new \Exception("Unable to set value to field '$name' as it's disabled.");
}
}
}
}

0 comments on commit d0d57e3

Please sign in to comment.