From: Lukasz Lenart
Sent: Thursday, October 3, 2019 8:27 AM
To: Struts Users Mailing List
Subject: Re: How to auto submit a jsp page after loading
[External email: Use caution! Do not open attachments or click on links from
unknown senders or unexpected emails.]
czw., 3 paź 2019 o 13:57
Hi Albert,
I think Dave is right -- if you wanted to test, then you would not do this.
What have you been using for test? If it tested UI also (e.g. Selenium),
it would have facilities to automate clicking on submit button [1]. If
you didn't want to test UI at all (e.g. JMeter), you would not try
Can use Javascript to achieve it. Sample code as follows
---
--
window.onload = function() {
document.getElementById("frm").submit();
}
-Original Message-
From: albert kao [mailto:albertk...@gmail.com]
Sent: Thursday, October 03, 2019 17:19
To: Struts Users M
On Thu, Oct 3, 2019 at 7:57 AM albert kao wrote:
> This is desired for saving time when testing a web application.
>
Two points:
* You'd no longer be testing the page.
* You'd introduce *additional* functionality not present on the real page.
Dave
czw., 3 paź 2019 o 13:57 albert kao napisał(a):
>
> How to auto submit a jsp page after loading is done?
> i.e. after a jsp page is completely loading, it will auto submit - advance
> to the next page without one of the Submit buttons is pressed or a link is
> clicked.
> This is desired for saving
5 matches
Mail list logo