Let me appologize in advance - I am actually having just as hard of a time explaining this issue as i am trying to resolve the issue ![:]()
I am trying to automate a SAP licensing site the normal text baxed fields of the form are just fine but there are a few drop down boxes. Once you select the option it updates the rest of the form with the updated options.
The closest i can get (below code) puts in the proper entries into each drop down but the form doesnt execute / update. I also put that form items website code below as well (obtained from debug bar).
I have also experimented with:
_IEFormElementOptionselect ($oTSysType, "Production support", 1, "byValue")
_IEFormElementOptionselect ($oTSysType, 5, 1, "byIndex") ; Production support is the 6th item in the list
Here is the code from the website:
<INPUT onblur="sapUrMapi_ComboBox_blurDdlb('ff_system_type',event);" style="WIDTH: 300px" onkeydown="sapUrMapi_ComboBox_keydown('ff_system_type',event);" id=ff_system_type onselectstart=sapUrMapi_cancelEvent(event); class=urCoB2TxtDdl onfocus="sapUrMapi_ComboBox_focusDdlb('ff_system_type',event);" tabIndex=0 onkeypress="sapUrMapi_ComboBox_keypress('ff_system_type',event);" readOnly value="Please select" ct="ComboBox" ti="0" vs="Please select" ic="8" dd="true" vt="true" st="" op="false" lid="ff_system_type-lb" ks="" k="">
Also one more entry for it:
<INPUT id=ff_system_typeKey name=ff_system_type type=hidden>
![:](http://aut1.autoit-cdn.com/forum/public/style_emoticons/default/crying.gif)
I am trying to automate a SAP licensing site the normal text baxed fields of the form are just fine but there are a few drop down boxes. Once you select the option it updates the rest of the form with the updated options.
The closest i can get (below code) puts in the proper entries into each drop down but the form doesnt execute / update. I also put that form items website code below as well (obtained from debug bar).
WinActivate("License Key Request") $oTSystemForm2 = _IEFormGetCollection ($oTLoginIE, 0) ; Text based item - works just fine $oTSysName = _IEFormElementGetObjByName ($oTSystemForm2, "ff_system_name") _IEFormElementSetValue ($oTSysName, $IeStore) Sleep(2000) ; Drop down item - issue with this element - Production Support is the item value $oTSysType = _IEFormElementGetObjByName ($oTSystemForm2, "ff_system_type") _IEFormElementSetValue ($oTSystype, "Production support", 1)
I have also experimented with:
_IEFormElementOptionselect ($oTSysType, "Production support", 1, "byValue")
_IEFormElementOptionselect ($oTSysType, 5, 1, "byIndex") ; Production support is the 6th item in the list
Here is the code from the website:
<INPUT onblur="sapUrMapi_ComboBox_blurDdlb('ff_system_type',event);" style="WIDTH: 300px" onkeydown="sapUrMapi_ComboBox_keydown('ff_system_type',event);" id=ff_system_type onselectstart=sapUrMapi_cancelEvent(event); class=urCoB2TxtDdl onfocus="sapUrMapi_ComboBox_focusDdlb('ff_system_type',event);" tabIndex=0 onkeypress="sapUrMapi_ComboBox_keypress('ff_system_type',event);" readOnly value="Please select" ct="ComboBox" ti="0" vs="Please select" ic="8" dd="true" vt="true" st="" op="false" lid="ff_system_type-lb" ks="" k="">
Also one more entry for it:
<INPUT id=ff_system_typeKey name=ff_system_type type=hidden>