grafana / xk6-browser

The browser module adds support for browser automation and end-to-end web testing via the Chrome Devtools Protocol to k6.
https://grafana.com/docs/k6/latest/javascript-api/k6-browser/
GNU Affero General Public License v3.0
344 stars 41 forks source link

Detect and assert on page errors #1481

Open andrewslotin opened 1 month ago

andrewslotin commented 1 month ago

To accurately track the number and type of errors that occur while interacting with a page from a script, the following page events must be supported:

For instance, a potential use case would involve setting a threshold for specific error types, such as the number of exceptions or failed requests.