in vb.net i want to do a sendkeys for the down arrow. what is the code?
We can hold a key down with Selenium webdriver. We mostly utilize the CONTROL/SHIFT/ALT keys to hold down and then click on other keys.
sendKeys(Keys. ARROW_DOWN, Keys. RETURN); This is working fine for me without any issues.
To specify that any combination of SHIFT, CTRL, and ALT should be held down while several other keys are pressed, enclose the code for those keys in parentheses. For example, to specify to hold down SHIFT while E and C are pressed, use "+(EC)".
' make sure you have this at the top:
Imports System.Windows.Forms.SendKeys
' and then you can use this:
SendKeys.Send("{DOWN}")
Go here for more examples and detailed information about SendKeys in VB.Net http://msdn.microsoft.com/en-us/library/system.windows.forms.sendkeys(VS.71).aspx
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With