How to select desired dates using qtp in my application?

In my application there is a date frame, and it acts like a link while choosing any date or month. Please tell me what would be the code so that QTP will automatically pick any date or month?

Questions by Sunita2k

Showing Answers 1 - 2 of 2 Answers

nanavu

  • Jul 25th, 2008
 

Normally, in the calendar frame the date links are keep in the table. So you have to loop through table, get the link object from each cell, then get the value of the link (maybe "text" depend on the properties) compare with the date that you want to pick, if it matches then perform a click on the link object and ext the loop.

  Was this answer useful?  Yes

Try to apply like below code.
Calendar object ‘cal’ is in OR Dim StartDay
StartDay = Day(Date)
Browser("***").Page("***").Image("cal").Click
Browser("***").Page("***").Link("text:="&StartDay).Click

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions