Jump to content

Wait until web page is fully loaded


Recommended Posts

Hello,

I want to use AutoIt for loading one web page, but I need to wait until web page is fully loaded (and then write name/password) - I use now only sleep function, but sometimes happens that web page is not loaded yet, and script fails of course. It is possible to use another function for this? Thanks for any help !

Link to comment
Share on other sites

Hello,

I want to use AutoIt for loading one web page, but I need to wait until web page is fully loaded (and then write name/password) - I use now only sleep function, but sometimes happens that web page is not loaded yet, and script fails of course. It is possible to use another function for this? Thanks for any help !

Have a look at the _IE functions in the helpfile.

Link to comment
Share on other sites

thanks, but this works only with IE ... or am I wrong?

It does and while there is an UDF to use FF (not any other browser to my knowledge) I'd advise you to use IE, as it's the only browser that can be controlled directly through COM and it will work on every windows PC.
Link to comment
Share on other sites

heh ;) yes yes, Excel can do that .. e.g. import whole webpages and then you can work with this data

ok probably it isnt possible to use this IE command for excel, so I have to use Sleep function ... not great, but never mind :)

Link to comment
Share on other sites

Right I was thinking you where trying to import some website into excel after loading it from some browser.

I'm not familliar with using websites in excel, but there should be a nicer way to do this than just a plain sleep. If autoit has trouble doing it directly, then maybe excel can check it and set a flag that's easily readable.

I'll see if I can have a look tomorrow.

Edit: I had a look and failed. I couldn't figure out a way to do it using COM and the only clue that anything was happening is the little globe in the bottom left corner, which was no use to me. Now if there was a cell in the page that would always change after an update (like a date/time stamp) things would be easy.

I'm still pretty sure there is an elegant solution to this, but I can't find it.

Edited by Tvern
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...