Hi Gopi..
Set ws = CreateObject("WScript.Shell")
wait 2
*ws.SendKeys "{DOWN}"*
*wait 2*
WS.SendKeys "{TAB}"
Set ws = Nothing
In above code from my knowledge
1. Insert one more line to hit the 'Enter' button it might be work
2. As per you said in Manual , you first pass some characters/letters to
that text box.
On Sat, Mar 29, 2014 at 3:37 PM, Gopi <[email protected]> wrote:
> Hii..
>
> I'm trying to automate one web page where I have one auto complete textbox
> as a mandatory field to complete.
>
> I have searched several threads and arrived with the code below, but it
> does not work as expected. Can someone look into this and point me where it
> goes wrong, please?
>
> Browser("Sample").Page("Pg_Sample").WebEdit("TxtBox").Set "123"
> Set ws = CreateObject("WScript.Shell")
> wait 2
> ws.SendKeys "{DOWN}"
> wait 2
> WS.SendKeys "{TAB}"
> Set ws = Nothing
>
>
> When I do manually in UI, that particular textbox would allow me to key-in
> first 4-5 characters/digits, and then automatically it would list some
> values from where I could pick-up the required using DOWN & TAB keys.
>
> ~~ Gopi
>
> --
> --
> 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/d/optout.
>
--
--
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/d/optout.