Jump to content
Sign in to follow this  
ironmankho

why my _IEFormSubmit not submit

Recommended Posts

HI

i am automating this url

_http://graphic.com/postsend?PostId=34026

 

here is my code

#include <IE.au3>
Local $oIE = _IECreate("http://graphic-dl.com/postsend?PostId=34026")
Local $oForm = _IEFormGetObjByName($oIE, "form0")
Local $oText = _IEFormElementGetObjByName($oForm, "Name")
_IEFormElementSetValue($oText, "meethayaam")
Local $oText = _IEFormElementGetObjByName($oForm, "email")
_IEFormElementSetValue($oText, "meethayaam@gmail.com")
Sleep(2000)
_IEFormSubmit($oForm)

code work fine. It fill 2 field but unable to submit any idea why it not work ?

Edited by ironmankho

Share this post


Link to post
Share on other sites

Two things --

1) For me, the code ended in error

"C:\Program Files (x86)\AutoIt3\Include\IE.au3" (1458) : ==> The requested action with this object has failed.:
$oObject.submit()
$oObject^ ERROR
->17:41:43 AutoIt3.exe ended.rc:1

so, it doesn't work fine as is.

2) Read the help file for _IEFormSubmit, especially the portion under the Remarks section. Then check out the example to click the button under_IEAction.

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...