public function selectFieldOption($locator, $value, $multiple = false)
    {
        $field = $this->findField($locator);

        if (null === $field) {
            throw new ElementNotFoundException($this->getDriver(), 'form field', 'id|name|label|value', $locator);
        }

        $field->selectOption($value, $multiple);
    }
public function selectFieldOption($locator, $value, $multiple = false)
    {
        $field = $this->findField($locator);

        if (null === $field) {
            throw new ElementNotFoundException($this->getDriver(), 'form field', 'id|name|label|value', $locator);
        }

        $field->selectOption($value, $multiple);
    }
public function selectFieldOption ( $ locator , $ value , $ multiple = false ) { $ field = $ this -> findField ( $ locator ) ; if ( null === $ field ) { throw new ElementNotFoundException ( $ this -> getDriver ( ) , 'form field' , 'id|name|label|value' , $ locator ) ; } $ field -> selectOption ( $ value , $ multiple ) ; }
Selects option from select field with specified locator.

@param string  $locator  input id, name or label
@param string  $value    option value
@param Boolean $multiple select multiple options

@throws ElementNotFoundException

@see NodeElement::selectOption
Selects option from select field with specified locator .