Revert "Merge branch 'MDL-49154' of git://github.com/timhunt/moodle"

This reverts commit 7a5d394e3c3e0fab8200d0867f6974d9c583d6e4, reversing
changes made to 58d5cc53604aa4181adc1cddc39114f40673a2a3.
This commit is contained in:
Andrew Nicols 2015-02-19 08:55:22 +08:00
parent 96e4202c3e
commit 4ec9e2a613

View File

@ -382,23 +382,6 @@ class behat_general extends behat_base {
$node->click();
}
/**
* Simulate pressing a sequence of keys.
* @When /^I type "(?P<keys>(?:[^"]|\\")*)" into the "(?P<element_string>(?:[^"]|\\")*)" "(?P<selector_string>[^"]*)"$/
* @param string $keys the keys to press.
* @param string $element Element we look for
* @param string $selectortype The type of what we look for
*/
public function i_type_into_the($keys, $element, $selectortype) {
$node = $this->get_selected_node($selectortype, $element);
$this->ensure_node_is_visible($node);
foreach (str_split($keys) as $key) {
$node->keyDown($key);
$node->keyPress($key);
$node->keyUp($key);
}
}
/**
* Drags and drops the specified element to the specified container. This step does not work in all the browsers, consider it experimental.
*