Jump to content
Sign in to follow this  
cad29

IE FormElementCheckboxSelect help

Recommended Posts

Hi i want to creat a script that will automatically check the box like it has in the example of _IEFormElementCheckboxSelect

heres the sourcode of the website

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">

<form name="Testlist" method="POST" action="wcls_problemlist.asp">

<td align="left"><input type="checkbox" value=Testing name="C" onclick ="JS_getSelectedProblems('Testing','123456',this)">Testing<input type="hidden" name="txtcodetype" value='11'><input type="hidden" value=''><br><input type="hidden" value='123456'>12346</td>

</form>

</BODY>

</HTML>

I check this one if theres a frame involved in the DOM and theres a frame involved on it the frame name is : testingframe

so i created a script like this

$oIE =_IECreate("www.testing.com",1)

$oFrame = _IEFrameGetObjByName ($oIE, "testingframe")

_IEFormElementCheckboxSelect ($oFrame, "Testing", "", 1, "byValue")

but when i run it i have an error of

IE.au3 Error from function _IEFormElementCheckboxSelect, $_IEStatus_InvalidObjectType

i tried the form aswell

$oForm = _IEFormGetObjByName ($oIE, "Testlist")

_IEFormElementCheckboxSelect ($oForm, "Testing", "", 1, "byValue") but still i have the same error

IE.au3 Error from function _IEFormElementCheckboxSelect, $_IEStatus_InvalidObjectType

thanks a lot for the help in advanced

Share this post


Link to post
Share on other sites

That is one of the worst copy and paste jobs ever.

$oIE =_IECreate("www.testing.com",1)
$oFrame = _IEFrameGetObjByName ($oIE, "testingframe")
_IEFormElementCheckboxSelect ($oFrame, "Testing", "", 1, "byValue")oÝ÷ Ùh¥z-ÂämçºÇZ+I^éí
1Ié^rÚÞªè«zƨn7¶ö«¦åzÚlZ+öí¡·¢Ç«µçg¢Ö¶¦{ö÷Ý«­¢+ØÀÌØí½½É´ô}%½ÉµÑ=©   å9µ ÀÌØí½%°ÅÕ½ÐíQÍѱ¥ÍÐÅÕ½Ðì¤)}%½Éµ±µ¹Ñ
¡­½áM±Ð ÀÌØí½½É´°ÅÕ½ÐíQÍÑ¥¹ÅÕ½Ðì°ÅÕ½ÐìÅÕ½Ðì°Ä°ÅÕ½ÐíåY±ÕÅÕ½Ðì¤oÝ÷ Ù8b²+^­·jëÊ­éèÂǧv)àiú+ãyËb«,ºh§+ajÉ÷ö×ÚWßtëÊØb²)ìµæjëh×6$oIE =_IECreate("www.testing.com",1)
$oForm = _IEFormGetCollection($oIE, 0)
_IEFormElementCheckboxSelect ($oForm, "Testing", "", 1, "byValue")

Untested. :lmao:

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  

×
×
  • Create New...