Enumerating though a webpage for Dropdown Selections

Started by hdsouza, December 21, 2014, 03:51:27 PM

Previous topic - Next topic

hdsouza

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


hdsouza

I ended up enumerating through the Nodes and got a handle to the selection.