Sign in to follow this  
Followers 0
Viktor

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

3 posts in this topic

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

Share this post


Link to post
Share on other sites



Did you try the example in the help file for _IEFormElementOptionselect()?

:)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

Thanks for the pointer! The "Bytext" option worked beautifully!

Cheers: Viktor

Did you try the example in the help file for _IEFormElementOptionselect()?

:)

Share this post


Link to post
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
Sign in to follow this  
Followers 0