library/QATools/QATools/HtmlElements/Element/Select.php
public function selectByValue($value)
	{
		$options = $this->getOptionsByValue($value);

		if ( !$options ) {
			throw new SelectException('Cannot locate option with value: ' . $value, SelectException::TYPE_NOT_FOUND);
		}

		return $this->selectOptions($options, !$this->isMultiple());
	}
public function selectByValue($value)
	{
		$options = $this->getOptionsByValue($value);

		if ( !$options ) {
			throw new SelectException('Cannot locate option with value: ' . $value, SelectException::TYPE_NOT_FOUND);
		}

		return $this->selectOptions($options, !$this->isMultiple());
	}
public function selectByValue ( $ value ) { $ options = $ this -> getOptionsByValue ( $ value ) ; if ( ! $ options ) { throw new SelectException ( 'Cannot locate option with value: ' . $ value , SelectException :: TYPE_NOT_FOUND ) ; } return $ this -> selectOptions ( $ options , ! $ this -> isMultiple ( ) ) ; }
Select all options that have a value matching the argument.

@param mixed $value The value to match against.

@return self
@throws SelectException When option with given value can't be found.
Select all options that have a value matching the argument .