The task is to insert the name into the input and from the autocomplete a menu will appear in which you need to select the desired name. Here is the site . And here is my code:
WebDriver driver = new HtmlUnitDriver(); driver.get("http://schedule.npi-tu.ru/application/prep"); WebElement element = driver.findElement(By.name("fio_prep")); element.sendKeys("Кирпиченкова Н В"); WebDriverWait wait = new WebDriverWait(driver, 5); wait.until(ExpectedConditions.visibilityOfElementLocated(By.cssSelector(".ui-autocomplete"))); WebElement listItems = driver.findElement(By.cssSelector(".ui-menu-item")); listItems.click(); driver.quit();