Jump to content

_IEStatus_NoMatch = No Match when using _IEGetObjById


Recommended Posts

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.

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...