Hi there, I’m trying to have k6 click a button, which shouldn’t be that hard. However, k6 seems to think the button doesn’t exist, which doesn’t make sense. My code is:
console.log('02')
console.log(await page.locator('[aria-label="frmpl"]').isVisible())
console.log(await page.locator('[aria-label="frmpl"]').all())
await page.locator('[aria-label="frmpl"]').click();
console.log('03')
Output:
INFO[0020] 02 source=console
INFO[0020] true source=console
INFO[0020] [{}] source=console
ERRO[0022] process with PID 20066 unexpectedly ended: signal: killed category=browser elapsed="0 ms" source=browser
The exception thrown is ERRO[0022] test aborted: undefined at default.
Other clicks with aria labels work just fine. This doesn’t seem to be a timing error either, I’ve tried waitForTimeout(2500) and watched the browser, made screenshots right before it’s supposed to click the button, everything seems absolutely fine.
I’m at my wit’s end and would really appreciate any ideas or pointers on what might be wrong.