Jump to content

Setting a drop-down control with IE.au3 - how?


Viktor
 Share

Recommended Posts

I would like to set a particular item in a drop-down control on a web page, which would trigger the page to switch to the "recent transactions" page (you probably guessed I want to download my transactions from my online banking web site). I cannot figure out how to do this. I can grab the drop-down object, as you can see in the code below, I can select it with _IEaction but I do not Know how to select the appropriate menu item (I cannot reference it, not even a DOM viewer gives me a clue).

CODE
$oForm = _IEGetObjByName ($oIE, "aspnetForm")

$oSelect = _IEFormElementGetObjByName ($oForm, "tl00$MainPageContent$MyAccountsCtrl$acc2$nav$List")

_IEAction ($oSelect,"click" )

After this I have a choice to select: "Recent transactions" or "statements" or "help", etc.

So what now? How could I select the a given menu choice from the drop-down?

Thanks a lot for the help in advance!

Viktor

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...