Open GoogleCodeExporter opened 9 years ago
There you go :
Dim selenium As New SeleniumWrapper.WebDriver
Dim Keys As New SeleniumWrapper.Keys
selenium.Start "firefox", "http://www.google.com"
selenium.Open "search?q=eiffel+tower"
selenium.SendKeys Chr(9) // ascii code for escape
Or
selenium.SendKeys Keys.Escape // Send escape to the active element
Or
selenium.findElementById("id").SendKeys Keys.Enter 'Send enter to the element
Original comment by florentbr
on 6 May 2013 at 12:53
To close a windows popup, you first have to to use the switchToWindow command.
Then you can try to send the escape key :
selenium.switchToWindow "windows-name"
selenium.sendKeys Keys.Escape
For the "id=x-auto-32", you can use a CSS selector with partial id :
selenium.findElementByCssSelector("a[id^=x-auto-]").click
Original comment by florentbr
on 10 Jul 2013 at 11:00
[deleted comment]
Original comment by florentbr
on 8 Sep 2014 at 5:40
Original issue reported on code.google.com by
steepd...@gmail.com
on 6 May 2013 at 8:30