它会显示tomorrow to end date of the month
的启用日期。我在excel表中给出了日期,并将此代码写入选择日期。
row.click()
正在点击今天的日期。虽然我给了If条件所以当date等于我给定的参数“day”
List<WebElement> tableRows = driver.findElements(By.xpath("//div[@class='datetimepicker datetimepicker-dropdown-bottom-right dropdown-menu'][1]//div[@class='datetimepicker-days']//table//tbody//tr//td[@class='day']"));
for (WebElement row : tableRows)
{
String actualDay = row.getText();
if (actualDay.equals(day))
{
row.click();
}
}