I see panic error when i execute my k6-browser script. When i ran the script with headless=false it worked perfect. But in headless mode it’s throwing panic error (panic: GoError: attaching iframe: attaching iframe target ID 225D1C79A0FF66C9E9A4E80CC970216C to session ID E461CF6D2436F061CDF233903EC34485: getting browser window ID: No web contents for the given target id (-32000)rrupted iterations)
FYI, i’m using latest version of k6 (k6 v0.51.0 (go1.22.3, darwin/arm64)) which intern using xk6-browser@v1.5.1
I am also facing same error. Headed mode is working fine, but headless mode is giving : “panic: GoError: attaching iframe: attaching iframe target ID A19DDD8590D6DA5A7A7D178E96715397 to session ID E5A6423320A34D3E03828457A8FA4FA7: getting browser window ID: No web contents for the given target id (-32000)ted iterations” . No Execution is done.
Thanks for raising this issue with us. We have recently pushed a fix into main and it will make it out in the next release of k6 (v0.54.0). Please take a look at the issue for all the details and on how you can test the fix yourself today.