Selenium Java - Handling Form Elements
Given the code snippet below, what will be printed?
driver.findElement(By.id("autoCompleteInput")).sendKeys("ban");
new WebDriverWait(driver, Duration.ofSeconds(5))
.until(ExpectedConditions.visibilityOfElementLocated(By.cssSelector(".suggestions li")));
List options = driver.findElements(By.cssSelector(".suggestions li"));
System.out.println(options.get(0).getText()); 