* Get JS log from browser. * * ```js * const logs = await I.grabBrowserLogs(); * const errors = logs.map(l => ({ type: l.type(), text: l.text() })).filter(l => l.type === 'error'); * console.log(JSON.stringify(errors)); * ``` * [Learn more about console messages](https://playwri
()
| 2512 | * @return {Promise<any[]>} |
| 2513 | */ |
| 2514 | async grabBrowserLogs() { |
| 2515 | const logs = consoleLogStore.entries |
| 2516 | consoleLogStore.clear() |
| 2517 | return logs |
| 2518 | } |
| 2519 | |
| 2520 | /** |
| 2521 | * {{> grabCurrentUrl }} |