Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Select Current Date from a Calendar Control
#3
Solved: 11 Years, 3 Months, 3 Weeks ago
Thanks ssvali for your reply.

I found a way to handle it. Below is the code i use

1. I had to set the focus on the webedit so it will pop-up the calendar control

Code:
Browser("br_xyz").Page("pg_abc").WebEdit("we_EndTime").FireEvent("onclick")

2. Select the current date

Code:
Browser("br_xyz").Page("pg_abc").WebElement("innertext:=" &Day(Date),"html tag:=DIV").Click


Hope this will help others too Smile
Reply


Messages In This Thread
RE: Selct Current Date from a Calendar COntrol - by qtpbeginner78 - 05-28-2013, 02:04 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  QTP not recognizing date calendar kQTPs 1 3,608 12-20-2017, 11:21 PM
Last Post: harikrishna
  select a date from pop-up calendar Dertjon 1 5,756 05-13-2014, 02:29 PM
Last Post: Ankur
  How to capture the DATE from the Calendar control in a sharepoint application Simr 3 10,376 09-17-2012, 03:50 PM
Last Post: visitjaga
  .Sync is NOT waiting for browser to complete current navigation.. can anyone help? mansis 4 4,603 09-14-2012, 06:53 PM
Last Post: mansis
  Need Help Datatable Parameterzing Date debindas 1 3,672 08-30-2012, 11:43 PM
Last Post: QTPScript

Forum Jump:


Users browsing this thread: 2 Guest(s)