Skip to content

element.clear

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();
});
});