I am a newbie in selenium and was doing some hands on on makemytrip.com site.
Here is the details i selected:-
from :- coachin
depaurure date :- selected a day say 19th Nov
Return date:- selected a day say 29th Nov
and searched the flights..
Now when i see the recorded playback at selenium i see that datapickers were not recorded properly it was just showing some link and which was giving error on reexcution of the test case.
Can someone guide me how can i correct that?
Thanks in Advance.
Good chance it's a timing issue. Since the date popup needs to appear first before the clicking of the link. You'll need to issue a hover action over the button, a click on the button to make the calendar appear, maybe about a 1/2 second delay for the calendar to fade in, then you can click on the links representing days.
Originally Posted by shikhasaxena29
If you can switch to using Selenium builder (Selenium Builder - The next evolution) or use webdriver. Selenium IDE is going to be discontinued when Selenium 3 comes out. Selenium Builder however uses webdriver, and is maintained by Sauce Labs. There's talks in the Selenium developer's forum of what the strategies are to getting people to stop using IDE and using Webdriver or Builder. Ideally you should be using webdriver directly. Selenium IDE wasn't really meant for maintainable automation, more for throw away tests like one you'd attach to a bug report.