library/QATools/QATools/HtmlElements/Element/RadioGroup.php
public function selectButtonByValue($value)
	{
		/** @var $button RadioButton */
		foreach ( $this as $button ) {
			if ( (string)$button->getValue() === (string)$value ) {
				$button->select();

				return $this;
			}
		}

		throw new RadioGroupException(
			'Cannot locate radio button with value: ' . $value,
			RadioGroupException::TYPE_NOT_FOUND
		);
	}
public function selectButtonByValue($value)
	{
		/** @var $button RadioButton */
		foreach ( $this as $button ) {
			if ( (string)$button->getValue() === (string)$value ) {
				$button->select();

				return $this;
			}
		}

		throw new RadioGroupException(
			'Cannot locate radio button with value: ' . $value,
			RadioGroupException::TYPE_NOT_FOUND
		);
	}
public function selectButtonByValue ( $ value ) { /** @var $button RadioButton */ foreach ( $ this as $ button ) { if ( ( string ) $ button -> getValue ( ) === ( string ) $ value ) { $ button -> select ( ) ; return $ this ; } } throw new RadioGroupException ( 'Cannot locate radio button with value: ' . $ value , RadioGroupException :: TYPE_NOT_FOUND ) ; }
Selects radio button that have a value matching the specified argument.

@param string $value The value to match against.

@return self
@throws RadioGroupException When radio button with given value wasn't found.
Selects radio button that have a value matching the specified argument .