This Question is Possibly Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
7 Replies Last post: Mar 20, 2009 6:06 AM by Roshni Prince  
Praveen Advanced 47 posts since
Dec 18, 2008
Currently Being Moderated

Jan 6, 2009 11:20 PM

Select Date from Popup calender

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

jEroMegu Advanced 44 posts since
Dec 4, 2008
Currently Being Moderated
1. Jan 7, 2009 2:08 AM in response to: Praveen
Re: Select Date from Popup calender

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.

anatar02 Master 379 posts since
Apr 4, 2008
Currently Being Moderated
2. Jan 7, 2009 8:51 AM in response to: Praveen
Re: Select Date from Popup calender

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>

Roshni Prince Beginner 7 posts since
Mar 13, 2009
Currently Being Moderated
3. Mar 13, 2009 7:56 AM in response to: anatar02
Re: Select Date from Popup calender

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

Vignesh Beginner 13 posts since
Mar 12, 2009
Currently Being Moderated
4. Mar 13, 2009 8:10 AM in response to: Roshni Prince
Re: Select Date from Popup calender

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

Roshni Prince Beginner 7 posts since
Mar 13, 2009
Currently Being Moderated
5. Mar 19, 2009 1:42 AM in response to: Vignesh
Re: Select Date from Popup calender

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

Vignesh Beginner 13 posts since
Mar 12, 2009
Currently Being Moderated
6. Mar 19, 2009 2:40 AM in response to: Roshni Prince
Re: Select Date from Popup calender

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

Roshni Prince Beginner 7 posts since
Mar 13, 2009
Currently Being Moderated
7. Mar 20, 2009 6:06 AM in response to: Vignesh
Re: Select Date from Popup calender

Thanks for clarifying it.

 

Rozzni

More Like This

  • Retrieving data ...