boopathi
boopathi

Reputation: 87

How to select a Particur date in selenium webdriver

How to select a particular date

Help me select a particular date from this calendar in selenium webdriver

Upvotes: 1

Views: 343

Answers (1)

Saurabh Gaur
Saurabh Gaur

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

Related Questions