Not able to use 'frame' option on second browser context

Hi, Ideally, K6 opens a new tab when I click on login button on my application(which doesn’t happen in ideal scenario. However, I user browserContext to handle the new tab and I was able to perform the user actions but while I tried to access the iframe, I couldn’t use the ‘frame’ option with newTab. it only allows frames for some reason.

Pasted the syntax which I’m trying to use and the contents were modified for obvious reasons. Could you please suggest on this

const [newTab] = await Promise.all([
  browserContext.waitForEvent('page'),
  page.locator('a[href="/my_messages.php"]').click(),
]);

Even newTab.frames() returning empty values not sure why. This is causing serious issue for me.

Was able to solve this issue with the workaround found on another. also, with the latest version, it is no more opening a new tab. Thanks.