-
-
Save housemeow/b9880d587a6677180f4854e06c435c1e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
do { | |
var next; | |
var promise = new Promise(resolve => { | |
next = resolve; | |
}); | |
console.log('System Maintenance!') | |
await sleep(3000) | |
page.once('frameattached', ()=> { | |
next(); | |
}); | |
await page.reload(); | |
await promise; | |
} while(await mainFrame.title() == 'System Maintenance'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment