library/QATools/QATools/HtmlElements/Element/RadioGroup.php
public function selectButtonByLabelText($text)
	{
		/** @var $button RadioButton */
		foreach ( $this as $button ) {
			if ( strpos($button->getLabelText(), $text) !== false ) {
				$button->select();

				return $this;
			}
		}

		throw new RadioGroupException(
			'Cannot locate radio button with label text containing: ' . $text,
			RadioGroupException::TYPE_NOT_FOUND
		);
	}
public function selectButtonByLabelText($text)
	{
		/** @var $button RadioButton */
		foreach ( $this as $button ) {
			if ( strpos($button->getLabelText(), $text) !== false ) {
				$button->select();

				return $this;
			}
		}

		throw new RadioGroupException(
			'Cannot locate radio button with label text containing: ' . $text,
			RadioGroupException::TYPE_NOT_FOUND
		);
	}
public function selectButtonByLabelText ( $ text ) { /** @var $button RadioButton */ foreach ( $ this as $ button ) { if ( strpos ( $ button -> getLabelText ( ) , $ text ) !== false ) { $ button -> select ( ) ; return $ this ; } } throw new RadioGroupException ( 'Cannot locate radio button with label text containing: ' . $ text , RadioGroupException :: TYPE_NOT_FOUND ) ; }
Selects radio button, that contains given text.

@param string $text Text.

@return self
@throws RadioGroupException When radio button with given label text wasn't found.
Selects radio button that contains given text .