如何使用selenium获取日期字段的值?
例如:date is 08/12/2015 is already selected then how to select that value using selenium web driver
答案 0 :(得分:2)
你可以这样做来获取元素中的值:
WebElement element = driver.findElement(By.id("input_name"));
String elementval = element.getAttribute("value");