This is a migrated thread and some comments may be shown as answers.

Submitting an HTML Form without a Submit Button

3 Answers 143 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Brad
Top achievements
Rank 1
Brad asked on 08 Apr 2014, 08:07 PM
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.

3 Answers, 1 is accepted

Sort by
0
Matt
Top achievements
Rank 1
answered on 09 Apr 2014, 01:56 PM
If it is javascript/jquery related, have you tried out the various invoke event possibilities?
0
Brad
Top achievements
Rank 1
answered on 09 Apr 2014, 02:00 PM
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.
0
Boyan Boev
Telerik team
answered on 11 Apr 2014, 11:45 AM
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
 
Tags
General Discussions
Asked by
Brad
Top achievements
Rank 1
Answers by
Matt
Top achievements
Rank 1
Brad
Top achievements
Rank 1
Boyan Boev
Telerik team
Share this question
or