Jump to content

Submitting a form that only contains submit input resulting an error


Servant
 Share

Go to solution Solved by michaelslamet,

Recommended Posts

How to click the tag <input type="submit" name="submit" id="submit" value="Publish this ad"> on this kind of form?

<form name="publish_form" id="publish_form" method="post" action="http://www.example.com/jobs/publish/xxxxx/">
    <fieldset>
        <div class="right">
            <div class="suggestion">If you changed your mind, you may <a href="http://www.example.com/jobs/deactivate/xxxxx/" title="cancel posting this ad">cancel posting this ad</a></div>
        </div>
        <input type="submit" name="submit" id="submit" value="Publish this ad">
        &nbsp;or&nbsp;
        <a href="http://www.example.com/jobs/post/xxxxx/" title="Edit it">Edit it</a>
    </fieldset>
</form>

I already tried this code:

#include <IE.au3>

Local $oForm = _IEFormGetObjByName($oIE, "publish_form")
Sleep(2000)
_IEFormSubmit($oForm)

But it caused a problem: --> IE.au3 T3.0-1 Error from function _IEFormSubmit, $_IEStatus_COMError (-2147352573)

Is there any other way to submit that kind of form?

Edited by Servant
Link to comment
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
 Share

×
×
  • Create New...