Hiya testers! Gazing into the crystal ball, I see there is a great need for assertion and verification in our day-to-day testing lives. So here we are, in the middle of nothing, dedicating one complete blog to this very topic for more brilliance.
While testing web applications, we keep expecting a lot of things to happen in a certain way. And if they don’t, then we declare the test as failed and either abort execution or log that particular exception for further analysis and continue with the testing activity. So, these two decisions result in two different sets of commands in Selenium – Assert and Verify.
Major difference between the two is, Assert will fail the test and abort the execution of the current test case whereas, Verify will fail the test but continue to run the test case.