Modify

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: 3.3.15.1 Component: Standard UDFs
Version: 3.3.15.0 Severity: None
Keywords: Cc:

Description

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')
	Sleep(1000)
	_IEFormElementOptionSelect($oSelect, "midipage.html", 1, "byValue")
	Sleep(1000)
	_IEFormElementOptionSelect($oSelect, 0, 1, "byIndex")
	Sleep(1000)
Next

_IEQuit($oIE)​

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 3.3.14.0 to 3.3.15.0

comment:3 Changed 8 years ago by mLipok

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

Fixed by revision [11713] in version: 3.3.15.1

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

Action
as closed The owner will remain mLipok.
Author


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

 
Note: See TracTickets for help on using tickets.