Jump to content
Sign in to follow this  
NSearch

Wait for webpage to become active

Recommended Posts

Hello. I thought I had this problem solved with winwait(Page title but I seem to be having the same problem.

I would like to wait until a webpage has fully loaded before clicking on the page. I do not want to use the sleep command, because the page may load at different speeds depending on the connection.

Any suggestions.

Thanks.

Share this post


Link to post
Share on other sites

Does anyone see a problem with this:

$click_flag = 0

While $click_flag = 0

If StatusbarGetText("TITLE") = "Done" Then

$click_flag = 1

MouseClick("Left", 351, 461)

MouseClick("Left", 351, 538)

MouseClick("Left", 351, 607)

Endif

WEnd

Share this post


Link to post
Share on other sites

Does anyone know how to test the "Status Bar Text" for the word Done?

<{POST_SNAPBACK}>

Did you try what your name suggests: Search the forum ?

I guess this is one of the most commonly asked questions, so should give enough hits to answer the question.....


SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

If you are trying to get info from a webpage, you might try:

[EDIT : use two slashes below

$I_file = "http://www.msn.com"

$ourfile = "c:\myfile.txt"

InetGet($I_file, $ourfile, 1, 1)

; variable tracks if "get" has completed

While @InetGetActive

TrayTip("Downloading", "Bytes = " & @InetGetBytesRead, 10, 16)

Sleep(250)

Wend

Then, open and read the file for data.

Edited by ShelbySue

Share this post


Link to post
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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...