Opened 8 years ago

Closed 8 years ago

#3239 closed Bug (Fixed)

_IEFormElementOptionSelect Doesn't Return Error on NoMatch

Reported by: benners Owned by: mLipok
Milestone: Component: Standard UDFs
Version: Severity: None
Keywords: Cc:


As an example I have used a script from the help file and modded to create the error.

#include <IE.au3>

Local $oIE = _IE_Example("form")
Local $oForm = _IEFormGetObjByName($oIE, "ExampleForm")
Local $oSelect = _IEFormElementGetObjByName($oForm, "selectExample")

_IEAction($oSelect, "focus")

For $i = 1 To 1
	_IEFormElementOptionSelect($oSelect, "Im Missing", 1, "byText")
	if @error then MsgBox(0,'Error', 'DOH')
	_IEFormElementOptionSelect($oSelect, "midipage.html", 1, "byValue")
	_IEFormElementOptionSelect($oSelect, 0, 1, "byIndex")


Even though "Im Missing" isn't in the drop down list there is no error created. Looking at the ie.au3 and the func IEFormElementOptionSelect I think the following lines should be moved out of the For/Next $oItem In $oItems loops for the byText and byValue cases to throw out the error.

__IEConsoleWriteError("Warning", "_IEFormElementOptionSelect", "$_IESTATUS_NoMatch", "Text not matched")
Return SetError($_IESTATUS_NoMatch, 2, 0)​

Posted Here

Attachments (0)

Change History (3)

comment:1 Changed 8 years ago by mLipok

  • Summary changed from _IEFormElementOptionSelect Doesn't Error on NoMatch to _IEFormElementOptionSelect Doesn't Return Error on NoMatch

comment:2 Changed 8 years ago by mLipok

  • Component changed from AutoIt to Standard UDFs
  • Version changed from to

comment:3 Changed 8 years ago by mLipok

  • Milestone set to
  • Owner set to mLipok
  • Resolution set to Fixed
  • Status changed from new to closed

Fixed by revision [11713] in version:

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

as closed The owner will remain mLipok.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.