Search
 
 

Display results as :
 


Rechercher Advanced Search

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Calender is not running in Scripts

View previous topic View next topic Go down

Calender is not running in Scripts

Post by mahesh koil on Wed Mar 21, 2012 1:27 pm

Hi,Guys

I am working on Calender.When i click on pick date that Calender opens.My test case is working when i run it step by step but not working when i run the whole test case because Calendar is not Selecting Date and not closing Calendar Pop-up there.

For Example :
Step1: selenium.click("id=img-property(dispositionDate)");
Step2: selenium.click("//body[@id='ext-gen6']/div[10]/table/tbody/tr[4]/td[3]");

Discription:-
Step1: If i Click on Calender icon then displaying Calender Pop-up
Step2: then i Click on date icon in Calender Pop-up

Expected Value :1)Date should be select in Calender Pop-up.2)close in Calendar Pop-up
Actual Value : 1)Date is not selecting in Calender Pop-up.2)not closing Calendar Pop-up


Please Help me. Its Urgent.

mahesh koil




mahesh koil

Posts : 2
Join date : 2012-03-20

Back to top Go down

Re: Calender is not running in Scripts

Post by jyothimahadeva on Fri May 11, 2012 10:23 am

Hi Mahesh,

iam facing same problem with javascript popup calender. If you got any solution, plz help solving that.

thanks,

jo.

jyothimahadeva

Posts : 4
Join date : 2012-05-11

Back to top Go down

Re: Calender is not running in Scripts

Post by rohit13 on Fri May 11, 2012 12:21 pm

For your reference i have generated code with sample java-script calender
Code:
click  | xpath=(//img[@name='imgCalendar']) |
click  | link=14

let me know its works for you or not..or share sample URL for calender which your are using..

_________________
Radical QA
http://radical-qa.blogspot.in/

rohit13
Master
Master

Posts : 180
Join date : 2012-03-29
Age : 30
Location : INDIA

http://radical-qa.blogspot.in/

Back to top Go down

Problem with Automating javascript popup calender

Post by jyothimahadeva on Fri May 11, 2012 1:05 pm

Hi Rohit,



Thanks for the reply. I tried with the path specified, it is not identifying the element. I am using Selenium with Java.

i am using "www yatra com". I trying to set the date for Departure date.

1. First i am clicking the field with "//input[@id='datePickerDepart_dom1']" xpath. The javapop up is not showing up on clicking this field.


2. Then, i want to set the date using the path. since popup not showing up i think i am Getting error like Element not found.



can you please suggest on this. strucked up with this for a long time..



Thanks,

Jo.

jyothimahadeva

Posts : 4
Join date : 2012-05-11

Back to top Go down

Re: Calender is not running in Scripts

Post by rohit13 on Fri May 11, 2012 1:18 pm

Code:
selenium.click("id=datePickerDepart_dom1");
selenium.click("link=12");
selenium.click("id=btnFindFlights");

This is working code for yatra.com for select Departure date.

This is URL on which i have tried..http://www.yatra.com/flights-india-vx/

_________________
Radical QA
http://radical-qa.blogspot.in/

rohit13
Master
Master

Posts : 180
Join date : 2012-03-29
Age : 30
Location : INDIA

http://radical-qa.blogspot.in/

Back to top Go down

Re: Calender is not running in Scripts

Post by jyothimahadeva on Fri May 11, 2012 2:18 pm

hi rohit,

i getting element link 12 not found error.but still not able clicking from popup.

but i did this using type().its working.

Thanks,

jyothimahadeva

Posts : 4
Join date : 2012-05-11

Back to top Go down

Re: Calender is not running in Scripts

Post by Sponsored content Today at 7:13 pm


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum