NirKlieman Posted November 29, 2015 Share Posted November 29, 2015 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 Link to comment Share on other sites More sharing options...
mikell Posted November 29, 2015 Share Posted November 29, 2015 the command _IECreate do not load the page well Could you be more precise on "not well" ? Link to comment Share on other sites More sharing options...
NirKlieman Posted November 30, 2015 Author Share Posted November 30, 2015 Could you be more precise on "not well" ? I wrote "not well" because _IELinkGetCollection not find links. Not because something that I found.mikell Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now