Package org.openqa.selenium.bidi
Class Connection
java.lang.Object
org.openqa.selenium.bidi.Connection
- All Implemented Interfaces:
Closeable,AutoCloseable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<X> longaddListener(Event<X> event, Consumer<X> handler) <X> voidclearListener(Event<X> event) voidvoidclose()<X> booleanisEventSubscribed(Event<X> event) voidremoveListener(long id) <X> CompletableFuture<X> <X> XsendAndWait(Command<X> command, Duration timeout)
-
Constructor Details
-
Connection
-
-
Method Details
-
send
-
sendAndWait
-
addListener
-
clearListener
-
removeListener
public void removeListener(long id) -
isEventSubscribed
-
clearListeners
public void clearListeners() -
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-