Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
problem with date set with SwfCalendar
#1
Solved: 10 Years, 9 Months ago
I am having a problem with SwfCalendar object. I am using the version 9.5 of QTP (it has the .NET 3.5) and during an automation. I am trying to change start and end date of form in application written in C#. My .net adding are correctely loaded. But these 2 functions:
Code:
-SwfWindow("Product Catalog Manager").SwfWindow("Service Wizard").SwfCalendar("dtpStartDate").SetDate "30-Jul-2009"
-SwfWindow("Product Catalog Manager").SwfWindow("Service Wizard").SwfCalendar("dtpEndDate").SetDate "15-Jun-2009"

are not actually changing the date in the form I an trying to automate. Is there something wrong with this code?

help needed.

Much Appreciated.
Reply
#2
Solved: 10 Years, 9 Months ago
Try this

Code:
SwfWindow("Product Catalog Manager").SwfWindow("Service Wizard").SwfCalendar("dtpEndDate").SetDate Date
' sets the current date

let me know if this works...
Reply
#3
Solved: 10 Years, 9 Months ago
Thank you for your reply
but it doesn't work because I want to set a particular date not today's date. I found a way to make work by cliking on the date first
Reply
#4
Solved: 10 Years, 9 Months ago
How about this...

Code:
SwfWindow("Product Catalog Manager").SwfWindow("Service Wizard").SwfCalendar("dtpEndDate").Type "30-Jul-2009"

Hope this works...


Thanks
Vinod
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Need Help Datatable Parameterzing Date debindas 1 3,418 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,840 05-28-2012, 09:29 PM
Last Post: defcon3
  Date Format change mv8167 9 49,197 03-05-2012, 08:54 PM
Last Post: SteveS
  Returned Date Format mv8167 3 5,736 07-06-2011, 09:25 AM
Last Post: rajpes
  Multiple Data Set With Different Child Data Set Suba 2 4,038 04-08-2011, 02:07 AM
Last Post: Suba

Forum Jump:


Users browsing this thread: 1 Guest(s)