Hi Prasad,
This is not working in my machine too...
Problem is focus of the QTP is going out of the application.
Try like this:
Systemutil.Run "iexplore.exe","www.bing.com"
Browser("title:=Bing").page("title:=Bing").Webradiogroup("name:=filt").Select
"rf"
wait(3)
Browser("title:=Bing").page("title:=Bing").Webradiogroup("name:=filt").Select
"all"
Browser("title:=Bing").page("title:=Bing").WebEdit("name:=q").Set "jai
jagannath swami nayana patha gami"
wait(3)
Set wsh= CreateObject("Wscript.Shell")
Browser("title:=Bing").page("title:=Bing").WebEdit("name:=q").Click
wsh.SendKeys "{ENTER}"
Set wsh=Nothing
Let me know your comments....
Thanks,
Durga Prasad.
On Tue, Oct 1, 2013 at 3:41 PM, Mishra Siba Prasad
<[email protected]>wrote:
> Hi All,
> Below is the code.Just run it.But the *"Enterkey function" *is not
> working.
> Let me know the problem.
>
> Systemutil.Run "iexplore.exe","www.bing.com"
> Browser("title:=Bing").page("title:=Bing").Webradiogroup("name:=filt").Select
> "rf"
> wait(3)
> Browser("title:=Bing").page("title:=Bing").Webradiogroup("name:=filt").Select
> "all"
> Browser("title:=Bing").page("title:=Bing").WebEdit("name:=q").Set "jai
> jagannath swami nayana patha gami"
> wait(3)
> Set wsh= CreateObject("Wscript.Shell")
> wait(5)
> wsh.SendKeys "{ENTER}"
> Set wsh=Nothing
>
> If in ur system it is working ,do not forget to inform me.
>
> Warm Regards,
> Siba Prasad Mishra
>
> --
> --
> 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.