pezo89 Posted February 23, 2010 Posted February 23, 2010 is there an easy way to click a radio button on a website?. iv tried the radio array helpfile but can't bring my head around it, the source im trying to click / Check is; " <td><input type='radio' name='vote' value='10' id='10' onclick='this.form.submit()' /></td> <td><label for='10'>10</label></td> " i need it to check that button at the end of my script..
Negative1 Posted February 23, 2010 Posted February 23, 2010 (edited) Since its in a website you should read in the helpfile about _IE* functions specifically this seams like a good place to start _IEFormElementRadioSelect I have to see the page to know exactly what function you need. Cheers -1 Edited February 23, 2010 by Negative1 What are we going to do tonight Brain?Same thing we do every night Pinky try to automate the world.
pezo89 Posted February 23, 2010 Author Posted February 23, 2010 (edited) nvm thx for the help but got it working =) #include <IE.au3> $oIE = _IECreate ("http://www..no/index.php?id=504242") $oForm = _IEFormGetObjByName ($oIE, "mainform") _IEFormElementRadioSelect ($oForm,"10", "10", 1, "byvalue") Sleep(1000) Edited February 23, 2010 by pezo89
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