baranowb
baranowb

Reputation: 603

Form validation and submission (java test case)

I'm struggling with a small problem. Here is my setup:

I want to trigger( from test case ) form submission, in order to trigger validator and managed been method tied to "action" attribute of submit button.

Is this even possible? Ive googled a bit and tried few things, but still fail to trigger validation.

Possibly Im failing to address POST request properly or to setup something in deployed web app?

Upvotes: 0

Views: 185

Answers (1)

Jigar Joshi
Jigar Joshi

Reputation: 240966

Yes possible very well.

  • Deploy application
  • Use Selenium and try to click on the button after setting wrong data
  • Read the response (using Selenium) and parse the error message in expected DIV

See

Upvotes: 1

Related Questions