キー入力のシーケンスをブラウザへ送ります。
名前空間: Seleniumアセンブリ: Selenium (in Selenium.dll) Version: 2.0.9.0 (2.0.9.0)
構文Dim instance As WebDriver
Dim keysOrModifier As String
Dim keys As String
instance.SendKeys(keysOrModifier, keys)
パラメータ
- keysOrModifier
- 型: SystemString
Sequence of keys or a modifier key(Control, Shift or Alt) if the sequence is in keysToSendEx - keys(省略可)
- 型: SystemString
Optional - Sequence of keys if keysToSend contains modifier key(Control,Shift...)
例
To Send mobile to the window :
To Send ctrl+a to the window :
driver.SendKeys Keys.Control, "a"
参照