Chromium
isAlertOpenโ
Whether a simple dialog is currently open.
Non official and undocumented Chromium command. More about this command can be found here.
Usageโ
await browser.isAlertOpen()
Exampleโ
console.log(browser.isAlertOpen()); // outputs: false
browser.execute('window.alert()');
console.log(browser.isAlertOpen()); // outputs: true
Returnsโ
- <Boolean>
isAlertOpen:trueorfalsebased on whether simple dialog is present or not.
isAutoReportingโ
Whether it should automatically raises errors on browser logs.
Non official and undocumented Chromium command. More about this command can be found here.
Usageโ
await browser.isAutoReporting()
Returnsโ
- <Boolean>
isAutoReporting:trueorfalsebased on whether auto reporting is enabled.
setAutoReportingโ
Toggle whether to return response with unknown error with first browser error (e.g. failed to load resource due to 403/404 response) for all subsequent commands (once enabled).
Non official and undocumented Chromium command. More about this command can be found here.
Usageโ
await browser.setAutoReporting(enabled)