element.clear
element.clear(): Promise<void>
Section titled “element.clear(): Promise<void>”Clears the value of the element if it is an input or textarea.
- Returns a promise that resolves when the action is complete.
describe('Test script', function () { it('Test 1', async () => { const input = await gf.get('input'); await input.clear(); });});