mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-51802 core: new template for quick editing a title
convert editing tag name to use new template
This commit is contained in:
parent
2f45a11ac4
commit
cdc5f9785b
23 changed files with 636 additions and 171 deletions
|
@ -107,8 +107,14 @@ class behat_form_field {
|
|||
// dealing with a fgroup element.
|
||||
$instance = $this->guess_type();
|
||||
$instance->field->keyDown($char, $modifier);
|
||||
$instance->field->keyPress($char, $modifier);
|
||||
$instance->field->keyUp($char, $modifier);
|
||||
try {
|
||||
$instance->field->keyPress($char, $modifier);
|
||||
$instance->field->keyUp($char, $modifier);
|
||||
} catch (WebDriver\Exception $e) {
|
||||
// If the JS handler attached to keydown or keypress destroys the element
|
||||
// the later events may trigger errors because form element no longer exist
|
||||
// or is not visible. Ignore such exceptions here.
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue