Jump to content

Manipulating Dropdown menus in IE?


Recommended Posts

Hi,

I'm trying to figure out how to manipulate dropdown menus in IE. I'm looking into reading and selecting specific values. I've looked at IE.au3 but I can't seem to figure out which function to use. Is IE.au3 the answer or is there something else that would be better to use?

Link to comment
Share on other sites

  • Moderators

I believe this is what you are looking for:

_IEFormElementOptionGetCount()
    Get count of Options within a Select drop-down form element
    
    _IEFormElementGetValue()
    Get the value of a specifid form element
    
    _IEFormElementSetValue()
    Set the value of a specified form element

If you need more help it would be helpful to see the webpage or some source code.

Link to comment
Share on other sites

I believe this is what you are looking for:

_IEFormElementOptionGetCount()
    Get count of Options within a Select drop-down form element
    
    _IEFormElementGetValue()
    Get the value of a specifid form element
    
    _IEFormElementSetValue()
    Set the value of a specified form element

If you need more help it would be helpful to see the webpage or some source code.

Exactly right. what you want to do is the IEFormElementSetValue() with the value of the selection that you want. the value is not always the same as the text that is displayed, you have to actually check the source of the web page, and find the value for the selection that you want.
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...