.captureBrowserConsoleLogs() Suggest edits
Since: 2.2.0Listen to the console.log
events and register callbacks to process the event.
captureBrowserConsoleLogs()
is only available when using Chrome or Edge drivers.
Usage
.captureBrowserConsoleLogs(callback)
Parameters
Name | Type | description |
---|---|---|
callback |
function | Callback function to be called when a new log is captured. |
Example
Or run locally with: