Jump to content

Wait Internet Explorer to load page


Nektra
 Share

Recommended Posts

Hi, im testing the performance of my portal IE9 with the installed IE9...

The test is this:

1) Open browser

2) Navigate to a webpage

3) Wait until its full loaded

4) Close browser

My problem is step 3... I cannot use _IECreate function because i cannot select portal IE9... How can i wait (without using winwait, sleeps, or something like that) until is full loaded?

Thanks

Link to comment
Share on other sites

Can you please post the code you have so far?

That makes it easier to help.

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

SplashTextOn("IE9 Automated Test", "IE9 Automated Test - Press ESC to exit", 300, 100, -1, 0, 4)
$a = 1
while $a <= 100
Run("C:\Program Files\Internet Explorer 9\iexplore.exe about:blank")
WinWait("Blank Page")
Sleep(2000)
Send("!d" & "http://www.newser.com" & "{ENTER}")
Sleep(2000)
If WinExists("Internet Explorer Security")Then
Send("s" & "a")
Sleep(1000)
EndIf
WinWait("Newser | Headline News Summaries, World News, and Breaking News - Internet Explorer, optimized for Bing and MSN")
;~ Here should I wait newser.com to full load
WinClose("Newser | Headline News Summaries, World News, and Breaking News - Internet Explorer, optimized for Bing and MSN")
WEnd

Link to comment
Share on other sites

What is "portal IE9"?

Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y

Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Link to comment
Share on other sites

Oh, completely ignored that remark in the OPs post :lol:, guess it's something like portable, if so, try to start it and then do a _IEAttach() or _IECreate() with $f_tryAttach = 1?

Edited by KaFu
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

×
×
  • Create New...