RemoteWebElement Clear Method WebDriver
Clears the content of this element.

Namespace: OpenQA.Selenium.Remote
Assembly: WebDriver (in WebDriver.dll) Version: 2.35.0.0 (2.35.0.0)
Syntax

public void Clear()

Implements

IWebElement Clear 
Exceptions

ExceptionCondition
OpenQA.Selenium StaleElementReferenceExceptionThrown when the target element is no longer valid in the document DOM.
Remarks

If this element is a text entry element, the Clear  method will clear the value. It has no effect on other elements. Text entry elements are defined as elements with INPUT or TEXTAREA tags.
See Also