• +91 9723535972
  • info@interviewmaterial.com

DevOps Interview Questions and Answers

Question - What is the difference between Assert and Verify commands in Selenium?

Answer -

The difference between Verify and Assert commands in Selenium are:

  • The verify commands determine whether or not the provided condition is true. The program execution does not halt regardless of whether the condition is true or not, i.e., all test steps will be completed, and verification failure will not stop the execution.
  • The assert command determines whether a condition is false or true. To know whether the supplied element is on the page or not, we do the following. The next test step will be performed by the program control, if the condition is true. However, no further tests will be run, and the execution will halt, if the condition is false.

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners