Skip to main content

fillField

API

interface I {
fillField(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.click('.DocSearch-Button')

await I.fillField('api', { locator: '.DocSearch-Input' })
})