Package org.openqa.selenium.devtools
Class Connection
java.lang.Object
org.openqa.selenium.devtools.Connection
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Direct Known Subclasses:
SeleniumCdpConnection
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<X> void
addListener
(Event<X> event, BiConsumer<Long, X> handler) void
void
close()
<X> CompletableFuture<X>
<X> X
sendAndWait
(SessionID sessionId, Command<X> command, Duration timeout)
-
Constructor Details
-
Connection
-
-
Method Details
-
send
-
sendAndWait
-
addListener
-
clearListeners
public void clearListeners() -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-