Insanz Posted January 23, 2014 Posted January 23, 2014 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.
Danp2 Posted January 23, 2014 Posted January 23, 2014 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. Latest Webdriver UDF Release Webdriver Wiki FAQs
Insanz Posted January 23, 2014 Author Posted January 23, 2014 Thank you for your quick response, I will surely look into both of those suggestions and see what I can turn up.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now