Jump to content

Recommended Posts

Posted (edited)

HTML

<form name="variations">

<input type="checkbox" name="pv__5_30" id="id_pv__5_30" />

</form>

How do you check that box?

Edited by Tyw214
Posted

#include <IE.au3>
$oIE = _IEAttach('test')
$oForm = _IEFormGetObjByName($oIE, 'variations')
$oCheckBox = _IEFormElementGetObjByName($oForm, 'pv__5_30')
_IEAction($oCheckBox, 'click')

You will need to change "test" in _IEAttach() of course.

Posted

Ah... so can't use that function altogether lol... seems kind of defeat the purpose ;p

#include <IE.au3>
$oIE = _IEAttach('test')
$oForm = _IEFormGetObjByName($oIE, 'variations')
_IEFormElementCheckBoxSelect($oForm, 0, 'pv__5_30', 1, 'byIndex')
Posted

#include <IE.au3>
$oIE = _IEAttach('test')
$oForm = _IEFormGetObjByName($oIE, 'variations')
_IEFormElementCheckBoxSelect($oForm, 0, 'pv__5_30', 1, 'byIndex')

How does the byIndex work? Is it index'd from the top of the form? Or index'd by the element defined by the 'pv___5_30'?

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
×
×
  • Create New...