How to handle
autocomplete box in web driver?
driver.findElement(By.id("your
searchBox")).sendKeys("your partial keyword");
Thread.sleep(3000);
List
<WebElement> listItems = driver.findElements(By.xpath("your list
item locator"));
listItems.get(0).click();
driver.findElement(By.id("your
searchButton")).click();
Hi, can you please tell me, how to press the enter button after typing in selenium webdriver.
ReplyDeletedriver.findElementByXPath("//*[@id='MainContent_txtPincode']").sendKeys("20130,Keys.Enter");
Deletesendkeys(keys.ENTER)
ReplyDeleteHi Helan,
ReplyDeleteits working for Chrome, but in firfeox its not working for me, any idea