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