Jump to content

TagNameGetCollection not returning as type Object

Recommended Posts

I'm trying to parse through tags on a page to retrieve specific info. The problem I'm running into is the _IETagNameAllGetCollection and _IETagNameGetCollection both return as type Int32. I can run the same code on other urls with no problems. The site im using is an internal one for my company and has a sign-on.

Local $oElements = _IETagNameAllGetCollection($oIE1)
MsgBox($MB_SYSTEMMODAL, "tagCollection", VarGetType($oElements))
For $oElement in $oElements
    MsgBox($MB_SYSTEMMODAL, "", _IEPropertyGet($oElements, "innerText"))

The For loop fails stating must be type Object. I know $oElements isn't an Object from the MsgBox. I've tried everything I could find such as _IELoadWait, but I can't seem to find this specific issue addressed anywhere. I am very new to AutoIT and HMTL in general, but I have done as much due diligence as I can.

Link to post
Share on other sites

Recently, I have been facing a similar situation where after a few tens of navigates followed by tag collections, the script was failing to get the object even though it was the same type of web page as the previous ones.  After testing all sorts of solutions, I finally got the script working if run as x64.  Seems that AutoIt was loosing path of objects if run at x86.

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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...