Driver.findElement(By.xpath("//*[@id='client']")).sendKeys("Ho");
Driver.manage().timeouts().implicitlyWait(1,TimeUnit.MINUTES);
WebElement dropdown = (new WebDriverWait(Driver, 10)).until(ExpectedConditions.presenceOfElementLocated(By.xpath("//*[@id='client']")));
Driver.findElement(By.xpath("//*[@id='collapseClientInfo']/div/form/div[3]/div[2]/ul/li[1]/a")).sendKeys(Keys.ENTER);
Could you please help me to select auto populate value from drop down list:
- We've Client
textbox
which is an auto-populate box. - When I enter "ho" text in the client field, it shows me the drop down which has values related to my entered text i.e.
ho
, then I have to select those values which are available under list. - In above code I've tried with Press Enter but unable to select the value.
Could you please check the above code and help me out for the same?