Get cookie value after page submit

Using xK6-Browser GitHub - grafana/xk6-browser: k6 extension that adds support for browser automation and end-to-end web testing via the Chrome Devtools Protocol, is it possible to get the value in the cookie after submitting a page?
When we do UI testing, we usually get it using driver.getCookie() or something similar. Can we do something similar here?


unfortunately this is not yet implemented, but it’s on our short-term roadmap. You can follow issue #6 for updates, and feel free to give it a :+1: for support.

Right now we’re focusing on getting the extension stable and will start picking up features like this soon.

BTW, there’s a dedicated subforum for xk6-browser.

1 Like