clearField
API
interface I {
clearField(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.appendField('api', { locator: '.DocSearch-Input' })
await I.clearField('.DocSearch-Input')
})