mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
Merge branch 'wip-mdl-55258-m' of https://github.com/rajeshtaneja/moodle
This commit is contained in:
commit
a900c680ba
1 changed files with 4 additions and 0 deletions
|
@ -54,6 +54,10 @@ class behat_forms extends behat_base {
|
||||||
|
|
||||||
// Ensures the button is present.
|
// Ensures the button is present.
|
||||||
$buttonnode = $this->find_button($button);
|
$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();
|
$buttonnode->press();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue