In the properties menu you (hopefully) have a property called 'top level 
items count' which will tell you how many items in the context menu
 
Regards
Neville

On Friday, 13 December 2013 11:35:20 UTC, ravi wrote:

> e.g in flight reservation dialog, copy from agent name and paste it to 
> password field.
>
> Set wscript=CreateObject("Wscript.Shell")
>
> Dialog("Login").Activate
> Dialog("Login").WinEdit("Agent Name:").Click
> wscript.SendKeys"ravi"
> Dialog("Login").WinEdit("Agent Name:").SetSelection 1,4
> Dialog("Login").WinEdit("Agent Name:").Click 1,1,micRightBtn
> wscript.SendKeys"{DOWN}"
> wscript.SendKeys"{DOWN}"
> wscript.SendKeys"{DOWN}"
> wscript.SendKeys"{ENTER}"
> Dialog("Login").WinEdit("Password:").Click 1,1,micRightBtn
> wscript.SendKeys"{DOWN}"
> wscript.SendKeys"{DOWN}"
> wscript.SendKeys"{DOWN}"
> wscript.SendKeys"{DOWN}"
> wscript.SendKeys"{ENTER}"
>
> my question?
>
> *In the above code, rather than clicking multiple times down, any other 
> alternative?And also how to get the context menu count?*
>
> regards,
> ravi 
>

-- 
-- 
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.

Reply via email to