public function selectOptionInRadioField($label, $option)
	{
		$this->debug("Trying to select the $option from the $label");
		$label = $this->findField(array('xpath' => "//label[contains(normalize-space(string(.)), '$label')]"));
		$radioId = $label->getAttribute('for');

		$this->click("//fieldset[@id='$radioId']/label[contains(normalize-space(string(.)), '$option')]");
	}
public function selectOptionInRadioField($label, $option)
	{
		$this->debug("Trying to select the $option from the $label");
		$label = $this->findField(array('xpath' => "//label[contains(normalize-space(string(.)), '$label')]"));
		$radioId = $label->getAttribute('for');

		$this->click("//fieldset[@id='$radioId']/label[contains(normalize-space(string(.)), '$option')]");
	}
public function selectOptionInRadioField ( $ label , $ option ) { $ this -> debug ( "Trying to select the $option from the $label" ) ; $ label = $ this -> findField ( array ( 'xpath' => "//label[contains(normalize-space(string(.)), '$label')]" ) ) ; $ radioId = $ label -> getAttribute ( 'for' ) ; $ this -> click ( "//fieldset[@id='$radioId']/label[contains(normalize-space(string(.)), '$option')]" ) ; }
Selects an option in a Joomla Radio Field based on its label

@param   string  $label   The text in the <label> with for attribute that links to the radio element
@param   string  $option  The text in the <option> to be selected in the chosen radio button

@return  void

@since   3.0.0
Selects an option in a Joomla Radio Field based on its label