Share
Go down
mahesh koil
Posts : 2
Join date : 2012-03-20

Calender is not running in Scripts

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



jyothimahadeva
Posts : 4
Join date : 2012-05-11

Re: Calender is not running in Scripts

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.
avatar
rohit13
Master
Master
Posts : 180
Join date : 2012-03-29
Age : 31
Location : INDIA
http://radical-qa.blogspot.in/

Re: Calender is not running in Scripts

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/
jyothimahadeva
Posts : 4
Join date : 2012-05-11

Problem with Automating javascript popup calender

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.
avatar
rohit13
Master
Master
Posts : 180
Join date : 2012-03-29
Age : 31
Location : INDIA
http://radical-qa.blogspot.in/

Re: Calender is not running in Scripts

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/
jyothimahadeva
Posts : 4
Join date : 2012-05-11

Re: Calender is not running in Scripts

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,
Sponsored content

Re: Calender is not running in Scripts

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