Jump to content

Recommended Posts

Posted

Hello Everyone,

I am new to AutoIT and I have been searching for the answer to the question and have not been able to find it....

I am trying to automate a website interaction and I have most of it down, but when I select a form element it seems to select it on the surface (visually) but in the HTML code it does not change the <option selected="selected" value=0> to the value of 3 that I am looking for. 

When I select value 3 manually (mouse click) from the menu it populates a sub-table and presents it back to me. 

 

Here is the code, that I have been trying to get to work.

Local $oSelect = _IEGetObjByName($oIE, "select[id]")
_IEFormElementOptionselect($oSelect, "test", 1, "byText")

 

Any help in setting the option to selected would be greatly appreciated!

Thank you!
 

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
  • Recently Browsing   0 members

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