LambdaTest Community

Find answers, support, and inspiration from other users

Questions
LambdaTest Community
Answered

How do I use assert in selenium WebDriver Java?

I want some guidance on How do I use assert in selenium WebDriver Java.

Up Vote Down Vote 0 Votes
Posted 4 months ago

Answers


  1. In test automation in order to validate result expected vs actual result we use validation methods
  2. There are two types of validation
  • Soft assert
  • hard assert
  1. you can check for detailed description about it
  2. In Soft asset - test case will still run by skipping the failed line
  3. In hard assert - test case will fail and execution will stop
Up Vote Down Vote 0 Votes
Posted 2 months ago