Modify

Opened 10 years ago

Closed 10 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 by mLipok, 10 years ago

Summary: _IEFormElementOptionSelect Doesn't Error on NoMatch_IEFormElementOptionSelect Doesn't Return Error on NoMatch

comment:2 by mLipok, 10 years ago

Component: AutoItStandard UDFs
Version: 3.3.14.03.3.15.0

comment:3 by mLipok, 10 years ago

Milestone: 3.3.15.1
Owner: set to mLipok
Resolution: Fixed
Status: newclosed

Fixed by revision [11713] in version: 3.3.15.1

Modify Ticket

Action
as closed The owner will remain mLipok.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.