mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Merge branch 'wip-mdl-55258-m' of https://github.com/rajeshtaneja/moodle
This commit is contained in:
commit
a900c680ba
@ -54,6 +54,10 @@ class behat_forms extends behat_base {
|
||||
|
||||
// Ensures the button is present.
|
||||
$buttonnode = $this->find_button($button);
|
||||
// Focus on button to ensure it is in viewport, before pressing it.
|
||||
if ($this->running_javascript()) {
|
||||
$buttonnode->focus();
|
||||
}
|
||||
$buttonnode->press();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user