MDL-38788 behat: Generic form elements interaction compatibile with JS disabled

This commit is contained in:
David Monllao
2013-04-01 11:18:33 +08:00
parent c94a0d1890
commit cd7ea8f0cc
+6 -2
View File
@@ -176,7 +176,9 @@ class behat_forms extends behat_base {
$selectnode->selectOption($option);
// Adding a click as Selenium requires it to fire some JS events.
$selectnode->click();
if ($this->running_javascript()) {
$selectnode->click();
}
}
/**
@@ -192,7 +194,9 @@ class behat_forms extends behat_base {
$radionode->check();
// Adding a click as Selenium requires it to fire some JS events.
$radionode->click();
if ($this->running_javascript()) {
$radionode->click();
}
}
/**