Jump to content
Sign in to follow this  
pezo89

Radio check button help

Recommended Posts

pezo89

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..

Share this post


Link to post
Share on other sites
Negative1

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 by Negative1

What are we going to do tonight Brain?Same thing we do every night Pinky try to automate the world.

Share this post


Link to post
Share on other sites
pezo89

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 by pezo89

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.