soft and hard assert in selenium code example
Example: what is soft assertion in selenium
soft assert:
- Soft assert: won't stop the execution
if assertion fails.
- Soft assert methods are not static,
so we must create the object of the class.
- It displayS the recorded result at the end.
I use soft assertion when functionality is NOT
very critical.