Reputation: 1005
I'm trying to fill out a form in Selenium2.
One input has an autocomplete that I want to close, preferably by sending esc after the search term.
I.e. something like driver.FindElement(By.Id("InputWithAutocomplete")).SendKeys("SearchTerm/ESC");
Keys that I would also like to send include del and ctrl+ a.
Is there a list of special characters that I can use?
I'm using Selenium for .NET 2.8 with the FirefoxDriver.
Upvotes: 11
Views: 16619
Reputation: 41
Try this:
WebElement list1;
list1=firefoxDriver.findElement(By.name("lst"));
list1.sendKeys(Keys.CONTROL);
Upvotes: 4