Submitting an HTML Form without a Submit Button

4 posts, 0 answers
  1. Brad
    Brad avatar
    2 posts
    Member since:
    Jun 2013

    Posted 08 Apr 2014 Link to this post

    Hello,

    With the SHDocVw.InternetExplorer class you can do things like InternetExplorer.Document.Forms.FormName.Submit() and have a form submit without an actual submit button.

    How can I replicate this behavior with the Testing Framework?

    I can grab the form into an HTMLForm variable, but cannot figure out how to submit it.

    For example:

    <FORM style="POSITION: absolute; DISPLAY: none" id=frmRootDocument method=post action=controller.aspx target=appContentFrame>

    The site is not public, so that's the best I can do.

    Thanks.
  2. Matt
    Matt avatar
    19 posts
    Member since:
    Dec 2013

    Posted 09 Apr 2014 Link to this post

    If it is javascript/jquery related, have you tried out the various invoke event possibilities?
  3. Brad
    Brad avatar
    2 posts
    Member since:
    Jun 2013

    Posted 09 Apr 2014 in reply to Matt Link to this post

    Thanks for the reply, this is the route I took.  I did get the form to submit by appending a button to the form by writing a script, calling invokescript on it, and clicking the resulting button.
  4. Boyan Boev
    Admin
    Boyan Boev avatar
    1039 posts

    Posted 11 Apr 2014 Link to this post

    Hello Brad,

    I am glad to hear that you have found such approach.

    If you need additional assistance, please let us know.

    Regards,
    Boyan Boev
    Telerik
     
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
     
Back to Top