library/QATools/QATools/HtmlElements/Element/Select.php
public function selectByText($text, $exact_match = true)
	{
		$options = $this->getOptionsByText($text, $exact_match);

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

		return $this->selectOptions($options, !$this->isMultiple());
	}
public function selectByText($text, $exact_match = true)
	{
		$options = $this->getOptionsByText($text, $exact_match);

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

		return $this->selectOptions($options, !$this->isMultiple());
	}
public function selectByText ( $ text , $ exact_match = true ) { $ options = $ this -> getOptionsByText ( $ text , $ exact_match ) ; if ( ! $ options ) { throw new SelectException ( 'Cannot locate option with text: ' . $ text , SelectException :: TYPE_NOT_FOUND ) ; } return $ this -> selectOptions ( $ options , ! $ this -> isMultiple ( ) ) ; }
Select all options that display text matching the argument.

@param string  $text        The visible text to match against.
@param boolean $exact_match Search for exact text.

@return self
@throws SelectException No options were found by given text.
Select all options that display text matching the argument .