mirror of
https://github.com/silverstripe/silverstripe-behat-extension
synced 2024-09-29 20:59:39 +02:00
Merge pull request #70 from jeffreyguo/pulls/jserror
wait for DOM to remove attribute
This commit is contained in:
commit
6e13a68762
@ -114,10 +114,11 @@ JS;
|
|||||||
}
|
}
|
||||||
|
|
||||||
$javascript = <<<JS
|
$javascript = <<<JS
|
||||||
(function() {
|
if ('undefined' !== typeof window.jQuery) {
|
||||||
var body = document.getElementsByTagName('body')[0];
|
$(document).ready(function() {
|
||||||
body.removeAttribute('data-jserrors');
|
window.jQuery('body').removeAttribute('data-jserrors');
|
||||||
})();
|
});
|
||||||
|
}
|
||||||
JS;
|
JS;
|
||||||
|
|
||||||
$this->getSession()->executeScript($javascript);
|
$this->getSession()->executeScript($javascript);
|
||||||
|
Loading…
Reference in New Issue
Block a user