Today I was working on a script for a website. I was trying to make my script click on a <TD> element.
It works now, but after allmost searching for 2 hours why my following code did not execute the $oQuery.click code but did execute the msgbox right above it:
_IETagNameGetCollection($oIE, "TD") For $x = 0 To @extended - 1 $oQuery = _IETagNameGetCollection($oIE, "TD", $x) If _IEPropertyGet($oQuery, "outertext") = "Controle & Oplevering" Then MsgBox(1, "", "") $oQuery.click ExitLoop EndIf Next _IELoadWait($oIE)
After changing this line
If _IEPropertyGet($oQuery, "outertext") = "Controle & Oplevering" Then
to:
If _IEPropertyGet($oQuery, "outertext") == "Controle & Oplevering" Then
It suddenly not only pops up the messagebox but also does the $oquery.click perfectly fine.
Could someone care to explain me why this works this way?
Kind regards,
Baksteen




