Forum Discussion

s_sakthivel's avatar
s_sakthivel
Occasional Contributor
10 years ago

Want to wait until web page page get loaded. Do not want Auto Time out. What is the Method?

I am automating a Web page.  Currently there is some performance issue and due to which my script got fails.  I have put page wait on it but eventhough it fails.  What is the reliable method so that my script waits until object appears with out auto timeout

1 Reply

  • gid_216's avatar
    gid_216
    Frequent Contributor
    Hi,



    You can use some logic to wait for the object.



    E.g. After login to the web page, say suppose if you are getting the logout then it is loaded completely.



    For this scenario, 



    You can wait for the alias using WaitAliasChild. if the object doesn't exist, it will return a dummy object. 



    script : 



    Set objLink = objPage.WaitAliasChild("linkLogout", 1000)

    do until objLink.Visible

             Set objLink = objPage.WaitAliasChild("linkLogout", 1000)

    loop



    hope this will help.