IWebElementSendKeys Method WebDriver
Simulates typing text into the element.

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

void SendKeys(
	string text
)

Parameters

text
Type: SystemString
The text to type into the element.
Exceptions

ExceptionCondition
InvalidElementStateExceptionThrown when the target element is not enabled.
ElementNotVisibleExceptionThrown when the target element is not visible.
StaleElementReferenceExceptionThrown when the target element is no longer valid in the document DOM.
Remarks

The text to be typed may include special characters like arrow keys, backspaces, function keys, and so on. Valid special keys are defined in Keys.
See Also

Reference