Hi,
Try this code...
Browser("name").Page("name").WebEdit("textboxname").value = "<<enter the
value you wish to>>"
wait(2)
set wshell = Createobject("wscript.shell")
'insert line to click the text box... e.g.,
Browser("name").Page("name").WebEdit("textboxname").click
wait(2)
wshell.SendKeys "{DOWN}"
wait(2)
'you will now see auto complete options displayed
'the following line will select the first option
wshell.SendKeys "{DOWN}"
'the following line will move the focus to the next field
wshell.SendKeys "{TAB}"
Do let me know if this works... it works for my application on the auto
complete fields...
Cheers,
Ganadhar
+61 403 327 545
On Sun, Aug 28, 2011 at 10:50 PM, Kiran Ogeti <[email protected]> wrote:
>
> Hi All,
>
> My app got several auto complete text boxes (ex: when type in first 3
> letters >> its going to bring up all names that match these three letters >>
> then use mouse down key to select the required one)
>
> I used Fire Event :onkeydown to select required value
>
> But ironically for some fields this event is not working .. any other
> alternative?
>
> Thanks
>
> --
> 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
"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