Reputation: 9536
How to get the value of date field using selenium ?
Eg: date is 08/12/2015 is already selected then how to select that value using selenium web driver
Upvotes: 0
Views: 1697
Reputation: 423
You can do it like this to fetch the value inside the element:
WebElement element = driver.findElement(By.id("input_name"));
String elementval = element.getAttribute("value");
Upvotes: 3