There are 3 different types of assertions in Selenium:-
1. Assert
If the user uses this type of assertion in the test case, it will abort the test case if the assertion fails. However, if you are running a test suite, the next test case will be executed.
2. Verify
Using this assertion will not abort your test case even if the verify fails. It will continue to execute the test case and will log the failure for the conditions failed.
3. WaitFor
This command waits for a specific condition to become true. If the condition is already true, the execution of test case will continue, else it will wait for the condition to become true. If the condition doesn't become true within defined time-out period, the test case will fail and halt.
Thanks
More From Oodles
Rajat Maan | 27-Dec-2022
Mohd Nawaz Hussain | 27-Dec-2022
Mohd Nawaz Hussain | 31-Oct-2022
Ready to innovate? Let's get in touch
Cookies are important to the proper functioning of a site. To improve your experience, we use cookies to remember log-in details and provide secure log-in, collect statistics to optimize site functionality, and deliver content tailored to your interests. Click Agree and Proceed to accept cookies and go directly to the site or click on View Cookie Settings to see detailed descriptions of the types of cookies and choose whether to accept certain cookies while on the site.
About Author
Kunal Sharma
Kunal is a bright QA Engineer with skills in Manual and Automation Testing.