grafana / xk6-browser

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

Can the browser store screenshots in a given path? #785

Open ankur22 opened 1 year ago

ankur22 commented 1 year ago

We need to investigate whether it's possible to store screenshots into a given directory.

ankur22 commented 1 year ago

The browser streams the screenshot data back to xk6-browser over the websocker, and xk6-browser writes it to disk. So browser definitely no. xk6-browser works locally, but it can't in any other way at the moment.