How to disable the console error logs with K6 browser

Hi,

I’m using k6 browser to test an application. There are console errors that I want to ignore when running k6, so I’m looking for an option to hide/filter the console errors. (ex: ERRO[0019] Refused to load the font …)

I saw there is an option called ‘K6_BROWSER_LOG_CATEGORY_FILTER’ but I’m not sure how to use this, or whether this is going to help for my use case.

Appreciate any solution/workaround to solve this ?

Hi @sashi1,

At the moment we do not have a way to hide specific logs. I’d suggest opening a new issue and requesting a new feature.

Cheers,
Ankur

1 Like