Class Module
java.lang.Object
org.openqa.selenium.bidi.Module
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final <X> Xfinal <X> StringSubscribes to a BiDi event, globally across all browsing contexts.final voidunsubscribe(String subscriptionId) Cancels a previously registered event subscription.
-
Constructor Details
-
Module
-
-
Method Details
-
send
-
subscribe
Subscribes to a BiDi event, globally across all browsing contexts.- Type Parameters:
X- the event's parameter type- Parameters:
event- the event to subscribe tohandler- invoked with the event's parameters each time it fires- Returns:
- a subscription id that can be passed to
unsubscribe(String)
-
unsubscribe
Cancels a previously registered event subscription.- Parameters:
subscriptionId- a subscription id previously returned bysubscribe(Event, Consumer)
-