T3.0-2 Error from function _IEFormElementOptionSelect, $_IESTATUS_InvalidObjectType
I have a select size option on a website. I want autoit to choose "Medium" from 4 different sizes.
I get the
Local $oSize = _IEGetObjByName($oIE,"size",-1)
and then I want to choose a size
_IEFormElementOptionSelect($oSize,33467)
, but I gets an error :
--> IE.au3 T3.0-2 Error from function _IEFormElementOptionSelect, $_IESTATUS_InvalidObjectType
Why do I get this error ? What's wrong there ? The whole code looks like :
Global $oIE = _IECreate('xxx',0,1,1,1)
_IELinkClickByText($oIE,'xxx',1)
Local $oSize = _IEGetObjByName($oIE,"size",-1)
_IEFormElementOptionSelect($oSize,33467,0)