Sends a sequence of keystrokes to the browser.
Namespace: SeleniumAssembly: Selenium (in Selenium.dll) Version: 2.0.9.0 (2.0.9.0)
Syntax Dim instance As WebDriver
Dim keysOrModifier As String
Dim keys As String
instance.SendKeys(keysOrModifier, keys)
Parameters
- keysOrModifier
- Type: SystemString
Sequence of keys or a modifier key(Control, Shift or Alt) if the sequence is in keysToSendEx - keys (Optional)
- Type: SystemString
Optional - Sequence of keys if keysToSend contains modifier key(Control,Shift...)
Examples
To Send mobile to the window :
To Send ctrl+a to the window :
driver.SendKeys Keys.Control, "a"
See Also