library/QATools/QATools/HtmlElements/Element/RadioGroup.php
public function selectButtonByIndex($index)
	{
		if ( isset($this[$index]) ) {
			/** @var RadioButton $button */
			$button = $this[$index];
			$button->select();

			return $this;
		}

		throw new RadioGroupException(
			'Cannot locate radio button with index: ' . $index,
			RadioGroupException::TYPE_NOT_FOUND
		);
	}
public function selectButtonByIndex($index)
	{
		if ( isset($this[$index]) ) {
			/** @var RadioButton $button */
			$button = $this[$index];
			$button->select();

			return $this;
		}

		throw new RadioGroupException(
			'Cannot locate radio button with index: ' . $index,
			RadioGroupException::TYPE_NOT_FOUND
		);
	}
public function selectButtonByIndex ( $ index ) { if ( isset ( $ this [ $ index ] ) ) { /** @var RadioButton $button */ $ button = $ this [ $ index ] ; $ button -> select ( ) ; return $ this ; } throw new RadioGroupException ( 'Cannot locate radio button with index: ' . $ index , RadioGroupException :: TYPE_NOT_FOUND ) ; }
Selects radio button by the given index.

@param integer $index Index of a radio button to be selected.

@return self
@throws RadioGroupException When non-existing index was given.
Selects radio button by the given index .