workWithTab
API
interface I {
workWithTab(id: number): Promise<void>
}
Example
import { test } from '@pw-codeceptjs/test'
test('Example', async ({ I }) => {
await I.amOnPage('https://playwright.dev') // 1-st tab
await I.createTab() // creating 2-nd tab and checkout to it
await I.workWithTab(0) // checkout to 1-st tab
})