MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / clear

Method clear

javascript/selenium-webdriver/lib/webdriver.js:3140–3142  ·  view source on GitHub ↗

* Clear the `value` of this element. This command has no effect if the * underlying DOM element is neither a text INPUT element nor a TEXTAREA * element. * * @return {!Promise } A promise that will be resolved * when the element has been cleared.

()

Source from the content-addressed store, hash-verified

3138 * when the element has been cleared.
3139 */
3140 clear() {
3141 return this.execute_(new command.Command(command.Name.CLEAR_ELEMENT))
3142 }
3143
3144 /**
3145 * Test whether this element is currently displayed.

Callers

nothing calls this directly

Calls 1

execute_Method · 0.95

Tested by

no test coverage detected