Search the Community
Showing results for tags '_ieformelementoptionselect'.
Found 3 results
Hi All, I have a question related to _IEFormElementOptionSelect in the reference file. This drop down contains three items; Homepage, Midipage, Freepage. How can I get the name of these items? If I use .innertext, in another drop down list contains spaces, so I cannot split them. ; Open a browser with the form example, get reference to form, get reference ; to select element, cycle 10 times selecting options byValue, byText and byIndex #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 10 _IEFormElementOptionSelect($oSelect, "Freepage", 1, "byText") Sleep(10) _IEFormElementOptionSelect($oSelect, "midipage.html", 1, "byValue") Sleep(10) _IEFormElementOptionSelect($oSelect, 0, 1, "byIndex") Sleep(10) Next _IEQuit($oIE) ;== Question == $aItems = StringSplit($oSelect.innerText, " ") For $i = 1 To $aItems - 1 ConsoleWrite("Item-" & $i & ": " & $aItems[$i] & @CRLF) Next
Website that I have about 100 programs wrapped around just updated their site code. I have the majority figured out but there is this drop down option select that has a data-bind. I think my problem will be solved with some sort of fireevent. But I cannot figure which one. It could also be how I am selecting the options as well. Here is the code that I have(I got desperate and just loaded up a bunch of fireevents and none of them fixed my issue. I left them in just to show which ones I tried so far) HTML SECTION OF MY CODE I found this from another post and think it might help me but I am not sure what it means in terms of actual application. .: I did try $oSelect.value = "CCX" in place of _IEFormElementOptionSelect ($oSelect, 'CCX', 1, 'byValue') but that did not work either. The way I have it written shows the value appearing in the box itself but when I try to run the search on their site it returns with no records. If I select a different option with my mouse and change it back to the actual option I want to select, it then returns the value I am seeking. So I know I am connected to the object, just not selecting the value correctly. Any insight would be much appreciated.