Web Automation Practice

Error Handling (Form Validation)

Instructions: Test form validation logic.

  1. Click "Submit" without filling out the form to trigger validation errors.
  2. Verify that error messages appear for both fields.
  3. Fill in the form with a valid email and click "Submit" again.

Validation: Your script should be able to read the error messages and then confirm the success message upon valid submission.

Output