At the end it loops through into another page, and repeats the code, with the elements on the new page being identical to the code previous.
My problem is that once on this new page, I instantly get access is denied when trying to grab the elements that I had previously.
An example would be:
Code: Select all
<html>
<body>
<div>
<span>THIS ITEM</span>
</div>
<a class="nextpage") href="ww...."></a>
</body>
</html>
Code: Select all
wb := ComObjCreate("InternetExplorer.Application")
wb.Visible := True
Loop
{
while wb.Busy || wb.ReadyState != 4
Sleep, 100
result := wb.document.getElementsByTagName("div")[0].getElementsByTagName("span")[0].innertext
FileAppend, %result%`n, C:..
wb.document.getElementsByClassName("nextpage")[0].click()
}