MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / subscribe

Method subscribe

java/src/org/openqa/selenium/bidi/Module.java:58–60  ·  view source on GitHub ↗

Subscribes to a BiDi event, globally across all browsing contexts. @param event the event to subscribe to @param handler invoked with the event's parameters each time it fires @param the event's parameter type @return a subscription id that can be passed to #unsubscribe(String)

(Event<X> event, Consumer<X> handler)

Source from the content-addressed store, hash-verified

56 * @return a subscription id that can be passed to {@link #unsubscribe(String)}
57 */
58 public final <X> String subscribe(Event<X> event, Consumer<X> handler) {
59 return handle.subscribe(event, handler);
60 }
61
62 /**
63 * Cancels a previously registered event subscription.

Calls

no outgoing calls