0 votes
in Selenium by
What are Selenium WebDriver Listeners?

1 Answer

0 votes
by
Selenium WebDriver Listeners, as the name implies, "listen" to any event that the Selenium code specifies. Listeners are useful when you want to know what happens before you click any element, before and after you navigate to an element, or when an exception is thrown and the test fails. Listeners can be used in Selenium Automation Testing to log the order of activities and to capture a screenshot whenever an Exception is thrown. This makes debugging easier in the later stages of Test Execution. Some examples of Listeners are Web Driver Event Listeners and TestNG.

Related questions

0 votes
asked Dec 25, 2020 in Selenium by SakshiSharma
0 votes
asked Aug 22, 2019 in Selenium by john ganales
...