Open ankur22 opened 2 years ago
I found another issue when working on a fix for https://github.com/grafana/xk6-browser/issues/827. It seems that pages
on browserContext
will not guarantee that the 0th
page will be the first page the test opened. In the test i'm writing in https://github.com/grafana/xk6-browser/pull/1334 i've had to account for this unexpected behaviour.
Tested against: dbede120c63df43995813a847a25b0e66e289592
It seems that the array does not start at index 0, and instead starts at index 1. In PW it correctly starts at 0. I think there's an underlying issue which is causing that should be fixed.
NOTE: In the code below it works against
localhost:8080
, which is a test server. It can be found in the following link along with Instructions on how to run it locally: https://github.com/ankur22/testserver.Script:
PW script: