Jump to content

IE > Accessing a class in IE > Variable must be of type object


Recommended Posts

Hi, 

I'm trying to access a class in IE and have the following code I took from googling this issue on this forum 

 

Local $oListItems = _IETagNameGetCollection ($oIE, "wrapper")
For $oListItem In $oListItems
    Local $odivs = _IETagNameGetCollection($oListItem, 'div')
    For $odiv in $odivs
        Local $dataVin = $odiv.getAttribute("col-lg-12")
        If $dataVin <> '' Then
            ConsoleWrite('+ Found it, class: ' & $dataVin & @CRLF)
            if $datavin.value == "Upload Costs" Then 
               ConsoleWrite("Upload costs has been found and $datavin equals: " & $datavin ) 
            Endif 
            
            ConsoleWrite('----------------------------' & @CRLF)
        EndIf
    Next
Next
ConsoleWrite('!--------- ENDING ----------' & @CRLF)

 

At the moment it fails at this line (the first for loop...See attached screenshot) 

I've also attached a screenshot of the class I'm trying to access

 

Thanks

 

 

 

1rename.png

2..PNG

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...