﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
3239	_IEFormElementOptionSelect Doesn't Return Error on NoMatch	benners	mLipok	"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 [https://www.autoitscript.com/forum/topic/182832-_ieformelementoptionselect-doesnt-error-on-nomatch/ Here]"	Bug	closed	3.3.15.1	Standard UDFs	3.3.15.0	None	Fixed		
