06-16-2009, 03:28 AM
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:
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.
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.