Reputation: 87
Help me select a particular date from this calendar in selenium webdriver
Upvotes: 1
Views: 343
Reputation: 23805
You should try using JavascriptExecutor
as below :-
((JavascriptExecutor)driver).executeScript("arguments[0].value = '26 Aug 2016'", driver.findElement(By.cssSelector("input[placeholder = 'Select From Date']")))
Upvotes: 2