Question - State the major difference between “assert” and “verify” commands in Selenium.
Answer -
Both “assert” and “verify” commands check whether the given condition is true or false and the only difference between them is that:
- Assert: Assert condition stops the execution of the testing if the given condition is false else would continue with the further tests.
- Verify: Verify the condition doesn’t stop the flow of execution irrespective of the condition being true or false.