Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to Record DatePicker in QTP
#1
Solved: 11 Years, 3 Months, 4 Weeks ago
Hello All,

Can anybody tell me how can i click on DatePicker & select a particular year and then select a date from cell, hoping for cooperation.

Thanks
Mahesh
Reply
#2
Solved: 11 Years, 3 Months, 4 Weeks ago
Hi Magesh,

You can set the date value directly in to date picker.
sfwObject("name").Set Date 'this will set today's date

If you want to set other date convert the string in to Date data type using CDate and then set it.
Reply
#3
Solved: 11 Years, 3 Months, 4 Weeks ago
Hi v_selvam,

This code is not working showing error , object cannot found sfwObject, Is this possible actually my datePicker field is non editable,
my code is Browser("Add Survey").Page("Add Survey").Image("calendar-ico")

Please help me out, hoping for cooperation

Thanks
Mahesh
Reply
#4
Solved: 11 Years, 3 Months, 4 Weeks ago
That object is actually an image and probably has a OnClick event calling a javascript function. You might try searching on calling the OnClick event in this forum. I know there have been examples of it in the past.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to write descriptive programming for DatePicker upadhyay40 1 3,446 12-08-2009, 03:00 PM
Last Post: basanth27

Forum Jump:


Users browsing this thread: 1 Guest(s)