mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
Merge branch 'wip-mdl-53623' of https://github.com/rajeshtaneja/moodle
This commit is contained in:
commit
a042f56be5
@ -76,7 +76,12 @@ class behat_form_select extends behat_form_field {
|
||||
$browser = \Moodle\BehatExtension\Driver\MoodleSelenium2Driver::getBrowser();
|
||||
if (!$singleselect && ($browser == 'phantomjs')) {
|
||||
$script = "Syn.trigger('change', {}, {{ELEMENT}})";
|
||||
$this->session->getDriver()->triggerSynScript($this->field->getXpath(), $script);
|
||||
try {
|
||||
$this->session->getDriver()->triggerSynScript($this->field->getXpath(), $script);
|
||||
} catch (Exception $e) {
|
||||
// No need to do anything if element has been removed by JS.
|
||||
// This is possible when inline editing element is used.
|
||||
}
|
||||
}
|
||||
$this->session->wait(behat_base::TIMEOUT * 1000, behat_base::PAGE_READY_JS);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user