Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unable to set the Start date for SwfCalendar control
#1
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi

I am trying to set the Start Date in my application (.net thick client) but the script ends up setting the end date. Please see the attachment1.
Qtp detects both the StartDate and End Date as separate object on adding it to object repository. view attachment2. View the script below
**************************************
Original Script

Code:
SwfWindow("Finish Line Timing System").SwfWindow("Meetings (Editing)").SwfCalendar("dtpMeetingStartDate").SetDate "2-Apr-2009"

SwfWindow("Finish Line Timing System").SwfWindow("Meetings (Editing)").SwfCalendar("dtpMeetingEndDate").SetDate "11-Apr-2009"

*********************************************************


I even tried renaming the object in the object repository. view attachment3 and 4

Every time the script for startdate is populating the end date calendar control (not as expected should populate start date) and again the script for end date is also rewriting the End date (as expected)

I also tried commenting the End Date script and even removing the EndDate object from the object repository but still the script populates teh end date.

***************************************************
MOdified Script

Code:
SwfWindow("Finish Line Timing System").SwfWindow("Meetings").SwfCalendar("cldStartDate").SetDate "20-May-2009"

'SwfWindow("Finish Line Timing System").SwfWindow("Meetings").SwfCalendar("dtpMeetingEndDate").SetDate "20-May-2009"
***************************************************

Any suggestions please


Attached Files Image(s)
               
Reply


Messages In This Thread
Unable to set the Start date for SwfCalendar control - by Shivakumarg - 06-17-2009, 05:11 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Using UFT 14.0 on Win 10, unable to find 'Register New Browser Control' utility soujanya 2 3,203 04-23-2018, 07:24 PM
Last Post: soujanya
  Date function mahbub798 1 2,241 03-27-2014, 07:27 PM
Last Post: Ankur
  Unable to set the Start date for SwfCalendar control-using SetDate or Type method mahbub798 0 2,676 03-23-2014, 05:28 AM
Last Post: mahbub798
  Does QTP/UFT support "Microsoft.Windows.Control" (one type of wpf control)? abhishikth12221 2 3,997 01-22-2014, 06:24 PM
Last Post: abhishikth12221
  wants to Automate Mainframe app, but at start QTP throws "HLLAPI.dll not found". shirish.ganjewar 0 5,212 10-14-2010, 01:06 PM
Last Post: shirish.ganjewar

Forum Jump:


Users browsing this thread: 1 Guest(s)