Try

Do while ((Browser().Page().Object.ReadyState)<>"complete")
wait(1)
Loop

On Tue, May 10, 2016 at 7:56 AM, Suresh Bhandari <
[email protected]> wrote:

> Best method.
>
>
>
> Browser("New Graduates").Sync.
>
>
>
>
>
> *From:* [email protected] [mailto:[email protected]] *On
> Behalf Of *[email protected]
> *Sent:* Monday, May 9, 2016 6:56 PM
> *To:* QTP - HP Quick Test Professional - Automated Software Testing <
> [email protected]>
> *Subject:* How to wait for a web page to load before performing next
> action
>
>
>
> Hi,
>
>
>
> If Browser("New Graduates").Page("Administration").Link("Create an
> Account").Exist(10) *Then*
>         Browser("New Graduates").Page("Administration").Link("Create an
> Account").Click
>
> Wait (5)
>
>
>
>
>
> I don’t want to use the Wait (5) command here because sometimes it takes
> longer than 5 seconds for the page to load.   What are my other options
> after clicking a link?
>
>
>
>
>
> Thanks in advance!
>
> --
> --
> 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.
>

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

Reply via email to