EventListener class handles all of the events that are dispatched by the
EventFiringWebDriver class. There are the following two ways to create an
AbstractWebDriverEventListenerclass provided in the WebDriver library.
It is up to you, as a test script developer, to choose which way to go by.
WebDriverEventListener interface has all of the event methods declared. The
EventFiringWebDriver class, as soon as it realizes an event has occurred, will invoke the registered method of
WebDriverEventListener. Here, we have created an
IAmTheEventListener named class and have implemented ...