Jump to content
Sign in to follow this  
weirddave

IE form checkbox problem

Recommended Posts

weirddave

I'm trying to tick the "remember me" checkbox on a site I want to log into (facebook as it happens).

I can click it using:

$oQuery = _IEFormElementGetObjByName($oForm, "persistent")

_IEAction($oQuery, "click")

But this toggles it every time the script is run

What I'd like to do is:

_IEFormElementCheckBoxSelect ($oForm, "persistent", "" , 1, "byValue")

But it doesn't work, however this does:

_IEFormElementCheckBoxSelect ($oForm, 0, "" , 1, "byIndex")

I just don't understand why the other doesn't work.

Here's the html for the checkbox:

<input type="checkbox" name="persistent" value="1" />

Can someone shed light on why I can't call it by name?

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.