Simulates typing text into the element.
Namespace: OpenQA.Selenium.RemoteAssembly: WebDriver (in WebDriver.dll) Version: 2.35.0.0 (2.35.0.0)
Syntax
Parameters
- text
- Type:
System String
The text to type into the element.
Implements
IWebElement SendKeys(String)Exceptions
Exception | Condition |
---|---|
OpenQA.Selenium InvalidElementStateException | Thrown when the target element is not enabled. |
OpenQA.Selenium ElementNotVisibleException | Thrown when the target element is not visible. |
OpenQA.Selenium StaleElementReferenceException | Thrown when the target element is no longer valid in the document DOM. |
Remarks
See Also