Jump to content
Sign in to follow this  
Marcoluca56

Load full page

Recommended Posts

Marcoluca56

Hi guys,

I would like to know how I can impose on Autoit to wait for the page's total load.

I would that sailed for example "www.google.it" and before the rest of the code, I would be waiting for the page to be fully charged.

How can I do?

thanks in advance

Share this post


Link to post
Share on other sites
water

Welcome to Autoit and the forum!

It depends on the browser you use. if you use Internet Explorer then please have a look at the IE UDF (User Defined Functions) which comes with AutoIt.

Function _IELoadWait should be a good start. Make sure that you read all remarks!


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2018-09-01 - Version 1.3.4.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
Marcoluca56

Thanks,

Ok, solved

now, I want to open 2 tabs

I gave this, but the program opens two windows and not 2 tabs on the same page:

#include <IE.au3>
Local $oIE = _IECreate("www.google.it/")
_IELoadWait($oIE)
sleep(500)
_IECreate($oIE, "www.yahoo.it")
_IELoadWait($oIE)

How can I do?

thanks in advance

Share this post


Link to post
Share on other sites
water
is an example how to open a new tab

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2018-09-01 - Version 1.3.4.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
Marcoluca56

I solved it with this code:

$oIE = _IECreate("www.hidemyass.com")
__IENavigate($oIE, "www.google.it" , 0, 0x800)

But now I have another problem with IE -.- "

Why do I display the page "Hidemyass" in this way? And how can I solve the problem?

http://localhostr.com/file/yJjV5gbHFl8o/problema-internet.jpg

Thanks in advance!

Edited by Marcoluca56

Share this post


Link to post
Share on other sites
water

Sorry, I don't completely understand your "new" problem?

Can you elaborate?


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2018-09-01 - Version 1.3.4.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
Marcoluca56

With Chrome the page is formatted normally.

With IE instead appear a lot of numbers (see the screenshoot in the previous post) that I expand the view of the page and I have the wrong format.

Share this post


Link to post
Share on other sites
water

Which version of the Internet Explorer do you use?


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2018-09-01 - Version 1.3.4.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
Marcoluca56

9

Share this post


Link to post
Share on other sites
water

So the same page looks different when displayed with IE9 and Chrome?

Maybe you can give the compatibility mode of IE9 a try.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2018-09-01 - Version 1.3.4.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
Marcoluca56

It's the same (with compatibility) :(

Share this post


Link to post
Share on other sites
water

Then I have run out of ideas :ermm:


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2018-09-01 - Version 1.3.4.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

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  

×