If there is a webedit next to the Calendar icon, then try this:
Browser("").Page("").WebButton("DepatureDate").Click
Wait (1)
Set Wsh = CreateObject("WScript.Shell")
Wsh.SendKeys "~"
Thanks,
Karthik
On 8 August 2013 11:26, uma mahesh <[email protected]> wrote:
> For date picker validation you need to use webtable to click on the date
> in the calander.
>
> Regards
> Uma Mahesh
> 8939192903
>
>
> On Wed, Aug 7, 2013 at 11:51 PM, Anish Pillai <[email protected]
> > wrote:
>
>> Hi,
>>
>> Are you getting any error message??
>>
>> Try highlighting the object and hit Enter key. Maybe that would help..
>>
>>
>> *
>> cheers,
>> a n i s h
>>
>> [QTP Framework
>> Tutorials]<http://www.automationrepository.com/2012/03/qtp-framework-types-an-introduction/>|
>> [QTP
>> Blogs] <http://www.automationrepository.com/qtp-blogs/>
>>
>> **
>> [Subscribe to get new posts in your
>> Inbox]<http://feedburner.google.com/fb/a/mailverify?uri=automationrepository/feeds>
>> *
>>
>>
>> On Wed, Aug 7, 2013 at 8:10 PM, surabhi <[email protected]> wrote:
>>
>>> Hi All,
>>>
>>> I am trying to select a value from calendar image. The value is
>>> highlighted, however the click event is not happening and the pop up window
>>> is not closing.Anu suggestions please.
>>>
>>> Dim StartDay
>>> StartDay = Day(Date)
>>> Cal_img = Browser("").Page("").Image("Calendar_icon").Exist(1)
>>> If Cal_img Then
>>> Browser("").Page("").Image("Calendar_icon").Click - NOT HAPPENING
>>> wait 5
>>> Browser("").Page("").Link("text:="&StartDay, "index:=1").Click
>>> Call WritePassLog (LogFile, "")
>>> Else
>>> Call WriteFailLog (LogFile, "")
>>> End If
>>>
>>> --
>>> --
>>> You received this message because you are subscribed to the Google
>>> "QTP - HP Quick Test Professional - Automated Software Testing"
>>> group.
>>> To post to this group, send email to [email protected]
>>> To unsubscribe from this group, send email to
>>> [email protected]
>>> For more options, visit this group at
>>> http://groups.google.com/group/MercuryQTP?hl=en
>>>
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "QTP - HP Quick Test Professional - Automated Software Testing"
>>> group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>>
>>>
>>
>>
>>
>> --
>> Regards,
>> Anish Pillai
>> My QTP Blog <http://automationrepository.blogspot.com>
>>
>> --
>> --
>> You received this message because you are subscribed to the Google
>> "QTP - HP Quick Test Professional - Automated Software Testing"
>> group.
>> To post to this group, send email to [email protected]
>> To unsubscribe from this group, send email to
>> [email protected]
>> For more options, visit this group at
>> http://groups.google.com/group/MercuryQTP?hl=en
>>
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "QTP - HP Quick Test Professional - Automated Software Testing" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>
> --
> --
> You received this message because you are subscribed to the Google
> "QTP - HP Quick Test Professional - Automated Software Testing"
> group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/MercuryQTP?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "QTP - HP Quick Test Professional - Automated Software Testing" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>
--
--
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en
---
You received this message because you are subscribed to the Google Groups "QTP
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.