Jump to content
NirKlieman

_IELinkGetCollection & _IECreate problems with IE11

Recommended Posts

Hi all,

I have the following problem:
I load a web-page and want to press its links. Therefore I start with the following code:

Global $oIE     = _IECreate("http://" & $ip & "/ipp/admin/myPage.php")
_IELoadWait($oIE)
Sleep(7000)

Local $oLinks = _IELinkGetCollection($oIE)
Local $iNumLinks = @extended

Local $sTxt = $iNumLinks & " links found" & @CRLF & @CRLF
For $oLink In $oLinks
    $sTxt &= $oLink.href & @CRLF
Next

 The problem is that in IE-11 the command _IECreate do not load the page well (and I don't know why) what makes the _IELinkGetCollection command that comes after to return 0 links.
The real annoying stuff is that happens "sometimes" - in 7 of 10 times. To make the problem even weirder I'll say that It didn't happen at all In IE9.

I tried to increase the timeout after the page-load and debug the functions in IE.au3 but nothing works.

Please assist,

Thanks

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

×
×
  • Create New...