Chromium
isAlertOpen
Whether a simple dialog is currently open.
Non official and undocumented Chromium command. More about this command can be found here.
Usage
browser.isAlertOpen()
Example
console.log(browser.isAlertOpen()); // outputs: false
browser.execute('window.alert()');
console.log(browser.isAlertOpen()); // outputs: true
Returns
- <Boolean>
isAlertOpen
:true
orfalse
based 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
browser.isAutoReporting()
Returns
- <Boolean>
isAutoReporting
:true
orfalse
based 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
browser.setAutoReporting(enabled)