WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: hdsouza on December 21, 2014, 03:51:27 PM

Title: Enumerating though a webpage for Dropdown Selections
Post by: hdsouza on December 21, 2014, 03:51:27 PM
Normally I would get a handle to the dropdown directly with something like this  MySelect_SE = msie.document.getElementsByTagName("select").item(2)

.... But at times there is an added drop down on the page. So If there a way to enumerate the webpage for SELECT tags.
Unfortunately I am stumped as SELECT is also used by Winbatch as a command
Else I would have written something like this

MySelectCollection = msie.document.getElementsByTagName("select")
ForEach Select in  MySelectCollection
... Do Something...
NEXT

Title: Re: Enumerating though a webpage for Dropdown Selections
Post by: hdsouza on December 21, 2014, 05:27:06 PM
I ended up enumerating through the Nodes and got a handle to the selection.