closeTab
API
interface I {
closeTab(closeTabID?: 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.closeTab(0) // close 1-st tab
})