1.

What is meant by an exception test in Selenium?

Answer»

An EXCEPTION test is a test that expects an exception to be thrown INSIDE a test CLASS. It expects a @Test annotation followed by the expected exception name in the brackets.

Eg: @Test(EXPECTEDEXCEPTION = NoSuchElementException.class) is an exception test for missing elements in Selenium.



Discussion

No Comment Found