Selenium: select first available date in datepicker

Last updated on:

Here is what I'm trying to do, basically I need to get all active dates and select the first available.

Here is how you do it:


 List<WebElement> resultLinks = getCurrentDriver().findElements(By.className("x-date-active"));
 System.out.println(resultLinks.get(0).getText());
 resultLinks.get(0).click();
View Comments

Leave a Comment

Use markdown or basic HTML and be nice.