ACABT

Web Form Element

2 posts in this topic

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!
 

Share this post


Link to post
Share on other sites



Can you give us the url then we can have a look

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