简体   繁体   中英

Selenium Automation Testing

I have a webpage with a textbox field. A calender icon near it. When i click on the calender icon a calender view is displayed. Its angularjs datepicker. Can anyone provide an example to automate this type of date pickers. (While the automation proceeds it reaches calender then opens the calender and then automation cannot be proceeded.)

Try to pass the value directly to input box in which date picker value store after selecting the date in date picker

<input type="text" name="deliveryDate" value="30/07/2015">

if that is the text box taking date and if u click on that text box it open an date picker, so insted of clicking on text box try to pass the value directly as below

webdriver.findelement(by.name("deliveryDate")).sendkeys("30/07/2015");

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM