Modify ↓
Opened on Jun 2, 2016 at 5:36:32 PM
Closed on Jun 6, 2016 at 9:20:10 PM
#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 , on Jun 6, 2016 at 9:16:39 PM
| Summary: | _IEFormElementOptionSelect Doesn't Error on NoMatch → _IEFormElementOptionSelect Doesn't Return Error on NoMatch |
|---|
comment:2 by , on Jun 6, 2016 at 9:19:24 PM
| Component: | AutoIt → Standard UDFs |
|---|---|
| Version: | 3.3.14.0 → 3.3.15.0 |
comment:3 by , on Jun 6, 2016 at 9:20:10 PM
| Milestone: | → 3.3.15.1 |
|---|---|
| Owner: | set to |
| Resolution: | → Fixed |
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

Fixed by revision [11713] in version: 3.3.15.1