mirror of
https://github.com/moodle/moodle.git
synced 2025-04-20 07:56:06 +02:00
Merge branch 'MDL-60469-master' of git://github.com/andrewnicols/moodle
This commit is contained in:
commit
0a1a56307b
@ -51,14 +51,7 @@ class behat_forms extends behat_base {
|
||||
* @param string $button
|
||||
*/
|
||||
public function press_button($button) {
|
||||
|
||||
// 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();
|
||||
$this->execute('behat_general::i_click_on', [$button, 'button']);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user