Merge branch 'MDL-38410_master' of git://github.com/dmonllao/moodle

This commit is contained in:
Eloy Lafuente (stronk7)
2013-03-19 23:20:31 +01:00
6 changed files with 266 additions and 0 deletions
+16
View File
@@ -179,6 +179,22 @@ class behat_forms extends behat_base {
$selectnode->click();
}
/**
* Selects the specified id|name|label from the specified radio button.
*
* @When /^I select "(?P<radio_button_string>(?:[^"]|\\")*)" radio button$/
* @throws ElementNotFoundException Thrown by behat_base::find
* @param string $radio The radio button id, name or label value
*/
public function select_radio($radio) {
$radionode = $this->find_radio($radio);
$radionode->check();
// Adding a click as Selenium requires it to fire some JS events.
$radionode->click();
}
/**
* Checks checkbox with specified id|name|label|value.
*