Skip to content

Commit

Permalink
Merge branch 'wip-mdl-55258-m' of https://github.com/rajeshtaneja/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Jul 19, 2016
2 parents 29dcec6 + ddf36bf commit a900c68
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/tests/behat/behat_forms.php
Expand Up @@ -54,6 +54,10 @@ 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();
}

Expand Down

0 comments on commit a900c68

Please sign in to comment.