Sign in to follow this  
Followers 0
Insanz

Use IE.au3 to click specific button in element.

3 posts in this topic

So I am looking to use IE.au3 to click on a specific button in an element.

The only part I am unsure of is how to get the _IEaction click to only click on the button with a value of 1.

here is the HTML code for the button, and one of the button I do not wish to click

<button name="option"  type="submit" value="1">Yes</button>

<button name="option"  type="submit" value="2">No</button>

I do not want it to just search for "yes" as there could be multiple on the same page and that would defeat the purpose of it choosing that specific value.

Share this post


Link to post
Share on other sites



Look up to topic _IETagNameGetCollection in the help file and review the example there. You should be able to write similar code where you retrieve all of the buttons and then scan them looking for the desired one with the value='1'.

You may also want to search the forum for _IETagNameGetCollection, which should turn up numerous working examples.

Share this post


Link to post
Share on other sites

Thank you for your quick response, I will surely look into both of those suggestions and see what I can turn up.

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