addEventListener method
- SyncWebDriverListener listener
Preferred method for registering listeners. Listeners are expected to return a Future. Use new Future.value() for synchronous listeners.
Implementation
void addEventListener(SyncWebDriverListener listener) {
_client.addEventListener(listener);
}