Skip to main content

waitForText

API

interface I {
waitForText(text: string, options: { locator: string }): Promise<void>
}

Example

import { test } from '@pw-codeceptjs/test'

test('Example', async ({ I }) => {
await I.amOnPage('https://playwright.dev')
await I.waitForText('Playwright', { locator: '.navbar__inner .navbar__title' })
})