0

I have a scenario, in case of the user registration successful, it will display a success message on the next page otherwise an error message shows on the same page. How to automate the test case to return as passed if it is success and failure in case of error message comes up.

Please help me out here.

enter image description here

2
1

There is no return value for verify element, so as a work around use, "Store xpath count" . If 0, it means no element, if 1 it means element present.

enter image description here

The below answer gives more complecated if/else scenarios:

If/else with test on checkbox in SELENIUM IDE

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.