Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to capture the DATE from the Calendar control in a sharepoint application
#1
Not Solved
Getting error -
Failed to run the test due to an unknown error.
For line-
Line (17):
Code:
"Browser("Test Home").Page("Add Home Standard").Frame(DatePicker).webtable("M").Link("name:=" + "&16").Click"

I am trying to select a date from the calendar on a sharepoint based application. Although, it opens the calendar and points to the date as 16 Feb 2012, but is not able to select and capture the date in the desired box. Attaching the screenshot as well.
Please let me know how to capture the DATE from the calendar.


Attached Files Image(s)
   
Reply
#2
Not Solved
you should use the calender popup object... i can get you the code tomorrow
Reply
#3
Not Solved
Thanks for replying.
Could you please send the Code as well.
I am trying to use the below code. Let me know if there is any mistake in that.
Code:
Browser("ABC Home").Page("Add Policy").WebList("ctl00$SPWebPartManager1$g_9142").Click 5,5

Browser("ABC Home").Page("Add Policy").Image("Select a date from the").Click 10,5

Browser("ABC Home").Page("Add Policy").Frame(DatePicker).webtable("M").webelement("Date").FireEvent"onmouseover"
wait 1

Regards,
Simr
Reply
#4
Not Solved
Hi ,

Please see the below script,which I recorded.
Code:
Browser("Welcome to the website").Page("Date").Frame("ContentIFrame").Image("img_calendar").Click
Browser("Welcome to the website").Page("Date").Frame("ContentIFrame").Link("17").Click

In the above script , I need to select current date for each run.Can anyone provide me suggesstion , how to get current date, as the date is displayed as link.I am confused little bit
Plz give it in Descriptive programming

Note:1.Only able to select the date.Not able to enter manually.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  QTP not recognizing date calendar kQTPs 1 3,457 12-20-2017, 11:21 PM
Last Post: harikrishna
  select a date from pop-up calendar Dertjon 1 5,594 05-13-2014, 02:29 PM
Last Post: Ankur
  Select Current Date from a Calendar Control qtpbeginner78 11 24,656 06-04-2013, 05:38 AM
Last Post: qtpbeginner78
  Need Help Datatable Parameterzing Date debindas 1 3,426 08-30-2012, 11:43 PM
Last Post: QTPScript
  How To Select Date From a Calender Image Where Date field is non editable? RameshKrishnan 1 3,843 05-28-2012, 09:29 PM
Last Post: defcon3

Forum Jump:


Users browsing this thread: 1 Guest(s)