Could you please open package visible method submit(final SubmittableElement submitElement) in the HtmlForm class in the further release.
I found the comment in javadoc: "Using this method directly is not the preferred way of submitting forms. Most consumers should emulate the user's actions instead". In our case it will complicate tests case.
Thank you.
No, it shouldn't be allowed.
In real browsers, you don't 'submit' a form, but rather do some action (e.g. click a button, type 'Enter'), in order for form to be submitted.
BTW, you can run JavaScript of something like "form.submti()", but again this is not preferred.
It would be nice to have choice: either to process html elements like buttons, etc or use simple form submit in case UI elements are not important.
Could you please show JS xample as workaround?
Thank you.