I've been struggling to locate elements on my test site with _IEGetObjById or _IEGetObjByName.
My script looks like this...
#include <IE.au3>
Global $g_oIE = _IECreate("http://www.asdf.com)
_IELoadWait($g_oIE, 0, 10000)
...
Func ChangeDDL()
Local $oElement = _IEGetObjById($g_oIE, "fg12_ddlFilterList")
MsgBox(0,"1",@Error)
EndFunc
ChangeDDL()
I get 7 in the MsgBox which is "No Match".
When I dump the html using _IEBodyReadHTML($g_oIE) in place of _IEGetObjById, I can see the element in the markup so I don't think I'm dealing with a frame/iframe issue. I'm not using IE9. I tried using the form collection stuff and I ran into the same problem.
Does anyone have any suggestions for how I can troubleshoot this?
My end goal is to be able to change the value of a Select element on the page.