Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

_IEFormElementOptionSelect invalid value using byIndex

$
0
0

Hello  I am trying to automate some form applications on a website and the issue I'm encountering is being able to select something other than the first value in the drop down menu.  For some reason if the first option is desired the code works flawless, but if the 2nd or 3rd entry is desired I receive the error invalid value.  The desired slot is determined off a GUI I built where the value will be set to 1,2, or 3.  I assumed that seeing how I'm using an index, but I think this assumption is wrong and I honestly don't know how to go about fixing it.  I can't use a search bytext because the text could vary differently from instance to instance.  byvalue I don't think I have that information either,I'm assuming its a value that is determined on their end in the code?  The options only show up after I choose the correct server.  The question is how do I get the next option in the drop down menu?

Local $oQuery4 = _IEFormElementGetCollection($oForm3, 1) _IEFormElementOptionSelect($oQuery4, 1, $slot, "byIndex");  which of the 3 slots _IEFormSubmit($oForm3) _IELoadWait($oIE)    EndFunc
<select name="char_id" id="char_id" onchange="list_char_level();"><option value="">Please choose character</option><option value="1541544">oldschoolxz3a</option><option value="1541545">oldschoolxz3b</option><option value="1541546">oldschoolxz3c</option></select>

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>