Jump to content

Waiting for Webpage to load


Recommended Posts

Hi,

I have a series of webpages that i run through and currently use the sleep function (by estimating the time ) to wait for a page to finsih loading.

Problem is that i am encountering problems :) with variations in the time it takes for webpage to finish downloading (eg : high internet traffic etc)

Is there a function i can use that asks for the script to pause until the activate webpage has finished downloading?

Thanks in advance

Link to comment
Share on other sites

Has been asked before. At least twice.

Please use the search function.

Thank you for your cooperation.

<{POST_SNAPBACK}>

Slim, sorry but i did do a search and the answers didnt satisfy my needs, or i didnt understand them

thanks for the help

Link to comment
Share on other sites

I don't understand. I use this as an example and it works perfect:

AutoItSetOption("WinTitleMatchMode", 2)

Run("explorer http://www.msn.com")

WinWait("Internet Explorer")
Sleep(1000)
WinSetState("Internet Explorer", "", @SW_MAXIMIZE)

MouseMove(100, 1, 0)

$x = MouseGetCursor()

Do
$x = MouseGetCursor()
Sleep(500)
Until $x = 2

<{POST_SNAPBACK}>

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...