ripvtech Posted May 8, 2006 Posted May 8, 2006 Hello all, I am trying to click the delete button in Craig's List and I feel I'm doing something horribly wrong $o_Form_Delete = _IEFormGetNameByIndex($o_IE, 0) $odel = _IEFormElementGetObjByIndex($o_Form_Delete, 1) $odel.click The page I'm on is the page you get to when your logged into your account and you click the link for one of your listings and it gives you a page with two buttons (Delete, Edit) and a description of your post. Any help would be great! This is my first post and I am a newb to AutoIT so please go easy on me Thank you, ~JD
Moderators big_daddy Posted May 8, 2006 Moderators Posted May 8, 2006 Hello all, I am trying to click the delete button in Craig's List and I feel I'm doing something horribly wrong $o_Form_Delete = _IEFormGetNameByIndex($o_IE, 0) $odel = _IEFormElementGetObjByIndex($o_Form_Delete, 1) $odel.click The page I'm on is the page you get to when your logged into your account and you click the link for one of your listings and it gives you a page with two buttons (Delete, Edit) and a description of your post. Any help would be great! This is my first post and I am a newb to AutoIT so please go easy on me Thank you, ~JDThe first thing I see is that you are using the functions wrong. This returns the name of the form rather than a reference to it. _IEFormGetNameByIndex If you could post the source of the page it would be easier to help.
ripvtech Posted May 8, 2006 Author Posted May 8, 2006 The first thing I see is that you are using the functions wrong. This returns the name of the form rather than a reference to it. _IEFormGetNameByIndex If you could post the source of the page it would be easier to help. Attached is a text file with the html for the page. Thank you, ~JD
Moderators big_daddy Posted May 8, 2006 Moderators Posted May 8, 2006 You will need the latest version of IE.au3; this is the form with the delete button $oForm = _IEFormGetCollection ( $oIE, 0 ) _IEFormSubmit($oForm) ; this is the form with the edit button $oForm2 = _IEFormGetCollection ( $oIE, 1 ) _IEFormSubmit($oForm2)
ripvtech Posted May 8, 2006 Author Posted May 8, 2006 (edited) You will need the latest version of IE.au3 ; this is the form with the delete button $oForm = _IEFormGetCollection ( $oIE, 0 ) _IEFormSubmit($oForm) ; this is the form with the edit button $oForm2 = _IEFormGetCollection ( $oIE, 1 ) _IEFormSubmit($oForm2) YOU ARE THE MAN!!!!! Thank you, Is there any way to "rep" on these forums? ~JD Edited May 9, 2006 by ripvtech
Moderators big_daddy Posted May 9, 2006 Moderators Posted May 9, 2006 YOU ARE THE MAN!!!!!Thank you, Is there any way to "rep" on these forums?~JDNo problem, glad I could help!Is there any way to what?
ripvtech Posted May 9, 2006 Author Posted May 9, 2006 No problem, glad I could help!Is there any way to what?"rep" a lot of the forums I go to you can give people reputation points for feedback.I wasn't sure if that was a feature used on this forum
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