How to use Hard and Soft Assertion in Selenium