How to select the Date Picker In Selenium WebDriver

后端 未结 8 1865
再見小時候
再見小時候 2020-12-03 00:02

Currently working on Selenium WebDriver and using Java. I want to select values in date range from the drop down.. I want to k

8条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-03 00:45

    You can directly use following javascript

    ((JavascriptExecutor)driver).executeScript("document.getElementById('fromDate').setAttribute('value','10 Jan 2013')")
    

提交回复
热议问题