Hi @meteboyaci1,
It’s not possible to access document
directly in a test script. It’s because a test script runs in k6, not in the browser. Please see page.evaluate for running JavaScript within the browser’s context.
Hope this helps.
Hi @meteboyaci1,
It’s not possible to access document
directly in a test script. It’s because a test script runs in k6, not in the browser. Please see page.evaluate for running JavaScript within the browser’s context.
Hope this helps.