Skip to content

Latest commit

 

History

History
26 lines (23 loc) · 1.94 KB

File metadata and controls

26 lines (23 loc) · 1.94 KB

WebElementExtensions.DelayedSendKeys(OpenQA.Selenium.IWebElement, string, bool) Method

Sends keys to a given Text-Container object with delay between keys. Used
for slow typing in order to trigger JS events.

public static OpenQA.Selenium.IWebElement DelayedSendKeys(this OpenQA.Selenium.IWebElement element, string text, bool clear);

Parameters

element OpenQA.Selenium.IWebElement
The OpenQA.Selenium.IWebElement to which send keys.

text System.String
The keys to send.

clear System.Boolean
If set to True will clear the text before sending new text.

Returns

OpenQA.Selenium.IWebElement
A self-reference to this OpenQA.Selenium.IWebElement.

Remarks

If not provided, the default delay is 100 milliseconds.