Hi Sourish,
How you are opening/invoking the IE?
If you create IE object with internetexplorer.application then busy will
work as expected. Find the below code:
Set objIE=createobject(,"internetexplorer.application")
objIE.Visible=true
objIE.Navigate "www.yahoo.com"
Do while objIE.Busy
wait(1)
Loop
browser("name:=Yahoo.*").page("title:=Yahoo.*").webelement("innertext:=Images","html
tag:=SPAN").Click
Set objIE=nothing
If you are invoking it from SystemUtil, then use readystate of DOM.
Following is the code:
SystemUtil.Run "iexplore.exe","www.yahoo.com"
Set obj=browser("name:=Yahoo.*").page("title:=Yahoo.*").Object
While obj.readystate<>"complete"
wait(1)
wend
msgbox "I am ready"
browser("name:=Yahoo.*").page("title:=Yahoo.*").webelement("innertext:=Images","html
tag:=SPAN").Click
msgbox "I am clicked"
Let me know if these methods help.
Thanks,
Uday
QTP Videos <http://www.youtube.com/user/AnemUday/videos>
On Wednesday, 25 September 2013 01:18:14 UTC+5:30, Sourish Mallick wrote:
>
> Set Object=Browser("name:=.*").object
> While Object.Busy=True
> Wend
> Set Object=nothing
>
>
> using this um getting general run error on the first line
>
> can ne1 help me.. on thiis
>
--
--
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.