/** * Selects option in select field with specified id|name|label|value. * * @override /^(?:|I )select "(?P<option>(?:[^"]|\\")*)" from "(?P<select>(?:[^"]|\\")*)"$/ */ public function selectOption($select, $option) { // Find field $field = $this->getSession()->getPage()->findField($this->fixStepArgument($select)); // If field is visible then select it as per normal if ($field && $field->isVisible()) { parent::selectOption($select, $option); } else { $this->selectOptionWithJavascript($select, $option); } }
/** * Selects option in select field with specified id|name|label|value. * * @Overrrides /^(?:|I )select "(?P<option>(?:[^"]|\\")*)" from "(?P<select>(?:[^"]|\\")*)"$/ */ public function selectOption($select, $option) { $this->substituteKeywords($option); parent::selectOption($select, $option); }