Simulates typing into the element.
名前空間: Seleniumアセンブリ: Selenium (in Selenium.dll) Version: 2.0.9.0 (2.0.9.0)
構文Dim instance As WebElement
Dim keysOrModifier As String
Dim keys As String
Dim returnValue As WebElement
returnValue = instance.SendKeys(keysOrModifier,
keys)
パラメータ
- keysOrModifier
- 型: SystemString
Sequence of keys or a modifier key(Control,Shift...) if the sequence is in keysToSendEx - keys(省略可)
- 型: SystemString
Optional - Sequence of keys if keysToSend contains modifier key(Control,Shift...)
戻り値
型:
WebElement
例
To Send mobile to an element :
driver.FindElementsById("id").sendKeys "mobile"
To Send ctrl+a to an element :
driver.FindElementsById("id").sendKeys Keys.Control, "a"
参照