ironmankho Posted December 22, 2017 Posted December 22, 2017 (edited) 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 December 23, 2017 by ironmankho
Danp2 Posted December 22, 2017 Posted December 22, 2017 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. Latest Webdriver UDF Release Webdriver Wiki FAQs
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