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

Cannot fire this dropdown though I can change it's value

$
0
0

This 'Select' element is on my bank account's page so I can't provide the url.

I found an example page at http://events.msdn.microsoft.com where, again,  I can change the value of any dropdown but unable to fire/update the page.  I've done many searches but never found a similar problem.  Please point me in the right direction. Below is the html and what I have tried already.

 

I have tried the following:

  1. #include <ie.au3>
  2.  
  3. Local $oIE = _IEAttach("Account Activity")
  4. Local $oForm = _IEFormGetCollection($oIE,0)
  5. Local $oSelect = _IEGetObjById($oForm,"StatementPeriodQuick")
  6. ; Any of these 3 methods work to select the 5th item "All Transactions"
  7. _IEFormElementOptionSelect($oSelect,"ALL",1,"byValue",1)
  8. _IEFormElementOptionSelect($oSelect,"All Transactions",1,"byText",1)
  9. _IEFormElementOptionSelect($oSelect,"4",1,"byIndex",1)
  10.  
  11. ;Nothing happens when I try any of the following
  12. _IEAction($oSelect, "focus")
  13. $oSelect.fireEvent("onSelect")
  14. $oSelect.fireEvent("onselectstart")
  15. $oSelect.fireEvent("onchange")
  16. $oSelect.fireEvent("onclick")
  17. $oSelect.fireEvent("onmousedown")
  18. $oSelect.fireEvent("onmouseup")
  19.  
  20. ;Submitting the form just refreshes the page with the defaults
  21. ;_IEFormSubmit($oForm)
<select name="StatementPeriodQuick" tabIndex="115" class="chaseanalytics-track-option" id="StatementPeriodQuick"><option value="SINCE_LAST_STATEMENT" data-pt-name="stmtquick_sincelaststmt">Since Last Statement</option> <option value="LAST_STATEMENT" data-pt-name="stmtquick_1monthsago">Statement Ending Mar 11, 2015</option> <option value="TWO_STATEMENTS_PRIOR" data-pt-name="stmtquick_2monthsago">Statement Ending Feb 11, 2015</option> <option value="THREE_STATEMENTS_PRIOR" data-pt-name="stmtquick_3monthsago">Statement Ending Jan 11, 2015</option> <option value="ALL" data-pt-name="stmtquick_all">All Transactions</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>