Hi,
I'm using a javascript calendar picker (www.dynarch.com/projects/calendar) which pops up a calendar for the user to select a date and populates a text field with the selected date. I can use selenium.click("id"); to click on the image which causes the calendar to pop up but I don't know how to select a certain date or determine the previously selected date if one exists. Selenium IDE isn't able to record this. Any help would be much appreciated.
It could be two ways if your object is editable you can directly type the date format and hit on Enter button. After invoking cal (after type) you can store clik event values into a variable and leter you can insert the same into the obkect by using type. Before passing your values make sure that you are passing all date month and year.
I am not sure about the format ? r u into html ? then it sounds.
Hope this works. Try.
hi..this is naresh..i am new to selenium..am trying to record the calendar value using selenium ide..if i type the date value, it is recording(as we know that it is like normal type)..but if i select date in calendar window,the value is not recording....please do the needful.....its very urgent..
i am using selenium ide 1.0 beta 2
mozilla firefox 2.0.6.
thanks in advance
Selenium IDE is very limited. It doesn't capture if the element doesn't have an id. You have to use other locators(xpath, name, etc..). See selenium documentation.
I had the same exprience when I created Selenium tests for the data picker from the Dojo framework.
Unless you can module the data picker using UI object oriented framework, the only option for you is just
typing in the date.
In Tellurium, we are considering creating complicated UI widgets for some Java script framework such as Dojo.
In this case, users do not need to handle the lower level details such as link, button, etc, but call methods
in Tellurium widgets directly. Maybe the date picker is a good candidate to work on.