【发布时间】:2016-02-05 06:31:38
【问题描述】:
无法选择出生日期的月份。
我使用的代码是:
driver.findElement(By.xpath(".//*[@id = 'BirthMonth']/div")).click();
Thread.sleep(3000);
WebElement months = driver.findElement(By.xpath(".//[@id='BirthMonth']/div[2]/div[@id=':1']"));
Thread.sleep(2000);
months.click();
我也尝试过使用 DropDownList 案例。但无法设置任何月份。
请告诉我解决方案。
【问题讨论】:
标签: java selenium automation automated-tests