I came across a scenario, I want to submit a registration form. A new page will be loaded on successful submission. If any errors it'll end up with same registration form with error details.
Now My doubt is , How can I validate whether form submitted successfully or not?
Conditions: Can not use Page Title as it is same for all pages. Can not use URL as it is same for all pages.
I tried to use try catch to avoid handle errors. But is there any other way I can handle this scenario better.