 | BaseElementSendKeys Method |
Simulates typing text into the element.
Namespace:
TescoSW.MW.UITests.Common.PageModel.Components
Assembly:
TescoSW.MW.UITests.Common (in TescoSW.MW.UITests.Common.dll) Version: 21.2.8103.33088
Syntaxpublic virtual void SendKeys(
string text
)
Parameters
- text
- Type: SystemString
The text to type into the element.
Implements
IWebElement.SendKeys(String)
ExceptionsException | Condition |
---|
InvalidElementStateException | Thrown when the target element is not enabled. |
ElementNotVisibleException | Thrown when the target element is not visible. |
StaleElementReferenceException | Thrown when the target element is no longer valid in the document DOM. |
RemarksThe 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