/** * @When /^I choose the radio button named "([^"]*)" with value "([^"]*)" for the vsite "([^"]*)"$/ */ public function iSelectRadioNamedWithValueForVsite($name, $value, $vsite) { $page = $this->getSession()->getPage(); $radiobutton = $page->find('xpath', "//*[@name='{$name}'][@value='{$value}']"); if (!$radiobutton) { throw new Exception("A radio button with the name {$name} and value {$value} was not found on the page"); } $radiobutton->selectOption($value, FALSE); $option = $radiobutton->getValue(); FeatureHelp::VsiteSetVariable($vsite, $name, $option); }