Implementing WebDriverEventListener

The WebDriverEventListener interface has all the event methods declared. The EventFiringWebDriver class, as soon as it realizes an event has occurred, invokes the registered method of WebDriverEventListener. Here, we have created an IAmTheEventListener named class and have implemented WebDriverEventListener. Now we need to provide implementation for all the methods declared in it. Currently, in WebDriverEventListener, there are 15 methods. We will discuss each one of them shortly. Make sure the IDE provides us with the dummy implementation of these methods. The class that we have created with all 15 overridden methods is as follows (we have provided implementations for a couple of methods as an example): ...

Get Selenium WebDriver 3 Practical Guide - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.