Sign in to follow this  
Followers 0
Laszlo55

$_IEStatus_NoMatch error code 7

6 posts in this topic

Hi Everybody!

I'm new in AutoIt. After some introductory simple tests I tried a "real" problem. Unfortunately, I ran in problems from the first. When I try to scrap some data from the site http://www.burcoinc.com/products/online_catalog/ selecting the control box Year, Make or Model is not working! The code line with problems are the last two::

#include<IE.au3>

Global $oIE=_IECreate("http://www.burcoinc.com/products/online_catalog/")

Local $oForm = _IEGetObjByID($oIE, "ReportViewer1_ctl00_ctl03_ddValue")

_IEFormElementOptionselect($oForm, 8, 1, "byIndex")

the error lines are:

IE.au3 V2.4-0 Warning from function _IEGetObjById, $_IEStatus_NoMatch (ReportViewer1_ctl00_ctl03_ddValue)

--> IE.au3 V2.4-0 Error from function _IEFormElementOptionselect, $_IEStatus_InvalidDataType

The control name is from the page's source code, (checked both from IE and Chrome). Also tried with AU3Info but in this page it selects only the frame around the controls, not the controls. What is happening?

I can't find a solution, could anybody help me? Thank you in advance.

Laszlo

Share this post


Link to post
Share on other sites



Looks like there are frames being used on this site, which is likely what is the first issue you will need to tackle.

Share this post


Link to post
Share on other sites

Thank you. Meantime I found some similar ideas in some older posts. It seems it is a general problem. I tried to correct my code, but I didn't manage. Could you be more specific?

Share this post


Link to post
Share on other sites

To access form elements by the IE UDF I think you need to use the _IEForm* functions.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

You can get a reference to a form using _IEGetObjById as the poster is doing.

This is a common coding mistake caused by not really understanding what the function calls are doing.

IE.au3 V2.4-0 Warning from function _IEGetObjById, _IEStatus_NoMatch (ReportViewer1_ctl00_ctl03_ddValue)

There is a lot of detail in there. Read it and understand it.

There is NOMATCH for the ID you passed in the document.

Prove it to yourself with:

ConsoleWrite(_IEDocReadHTML($oIE))

And as previously mentioned, you may well see some frames in that source.

Dale


Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Share this post


Link to post
Share on other sites

Thank you guys! It seems I have to learn more, until I could use autoit efficiently. My problem is that in the page's whole source code is only ONE frame name. Of course if I use it, I get the usual NOMATCH error. Any ideas?

Share this post


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
Sign in to follow this  
Followers 0