Hi,
I am facing a problem at the time of selecting a date in the calender ,
when i record a test and then replay it , it pops up the calender, but
without selecting the date the test moves forward and gives the error.
it doesn't show the command for selecting the date in the IDE window.
please suggest.
thanks
hi,
Is the popup calender in new window or new frame, if yes, u may add selectWindow or selectFrame before following actions since IDE sometimes misses them.
try this
<tr>
<td>waitForElementPresent</td>
<td>Input_ArrivalDate</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>Input_ArrivalDate</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>Input_ArrivalDate</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>Input_ArrivalDate</td>
<td>${Depart_date}</td>
</tr>
<tr>
<td>keyDown</td>
<td>Input_ArrivalDate</td>
<td>\13</td>
</tr>
I am using Selenium IDE and facing the same problem as mentioned by Praveen.while playing back the script runs without selecting the date and displaying in the date field.I tried your above given solution,but couldnt solve my problem.Can u pls suggest some other option?
Regards
Rozzni
Hi
Please try the steps given below. It should work
Open the Selenium IDE tool and select the Table Tab, Then enter the values as provided below.
Commad: Enter the command as "type"
Target: point the xpath of the date field Example (//input[@id="xddateField")
Value: Provide the Date you want to enter 11-Mar-2009
This should work
Regards/Positively
Vignesh
Thanks Vignesh
But this is the usual typing that we do in any text control.
The Problem of selecting from pop up control still remains
Regards
Rozzni
Hello Rozzni,
Selenium IDE doesnt support selection of file dates etc... For exampl if you have a Browse button to select a file and upload, the only option is to script using type command. You should enter command as type and the target as the Xpath and the value as D://filename.txt. We cant do anything morethan that.
Thank You!
Regards/Positively
Vignesh
