Novox 0 Posted June 15, 2010 Hello, I would like to know any function in IE.au3 or others can list all website controls (textbox, dropdownlist, checkbox, radio button, button, etc.) in the page with their name/id and value? Thank you very much, Novox Share this post Link to post Share on other sites
Thatsgreat2345 0 Posted June 15, 2010 Not that I recall, but the way to do that would be to get all the forms, get all elements under each form and from then on you could get all the properties of each of them, it would just really take about 2 loops. Share this post Link to post Share on other sites
Novox 0 Posted June 15, 2010 Not that I recall, but the way to do that would be to get all the forms, get all elements under each form and from then on you could get all the properties of each of them, it would just really take about 2 loops.Would you please give me a hint which command I can use to get all the forms and get all elements?Thanks again! Share this post Link to post Share on other sites
Remnant 0 Posted June 15, 2010 _IEFormGetCollection returns a collection of all forms in an IE window _IEFormElementGetCollection returns a collection of all elements in a form. Share this post Link to post Share on other sites
Thatsgreat2345 0 Posted June 15, 2010 #include <IE.au3> $oie = _IECreate('http://www.google.com') Sleep(100) $oforms = _IEFormGetCollection($oie,-1) For $oform In $oforms ConsoleWrite($oform.name & @CRLF); $oeles = _IEFormElementGetCollection($oform) For $oele In $oeles ConsoleWrite(@TAB & 'Name: ' & $oele.name & ' Tag Type: ' & $oele.tagName &@CRLF) Next Next A small demonstration Share this post Link to post Share on other sites
Novox 0 Posted June 15, 2010 Thank you very much for your quickly reply Share this post Link to post Share on other sites