0 votes
in Selenium by
What is exception test in Selenium?

1 Answer

0 votes
by
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.

Related questions

0 votes
asked Jan 30, 2020 in Selenium by rajeshsharma
0 votes
asked Jan 31, 2020 in Selenium by SakshiSharma
...