01-23-2008, 11:38 AM
Kathy,
I also faced the same issue with .Net application. Use Object Repositary to store the calender object and then write the calender statement.
go to Resources --> Object Repositary
Object Repositary window opens from there go to Object --> Add objects to local
Then you can see QTP window will disappear untill you select the calendar object in your application. Click on Ok in the pop-up window to add the calendar object in the repositary.
Now switch to Expert View to write the calendar statement. some thing like below
Hope this will help you. let me know how did you go.
Cheers
Ram.
I also faced the same issue with .Net application. Use Object Repositary to store the calender object and then write the calender statement.
go to Resources --> Object Repositary
Object Repositary window opens from there go to Object --> Add objects to local
Then you can see QTP window will disappear untill you select the calendar object in your application. Click on Ok in the pop-up window to add the calendar object in the repositary.
Now switch to Expert View to write the calendar statement. some thing like below
Code:
SwfWindow("window").SwfComboBox("cmb").Select Security
'calendar statement
SwfWindow("window").SwfCalendar("cmbdate").SetDate "12-Dec-2007"
Hope this will help you. let me know how did you go.
Cheers
Ram.