Package org.openqa.selenium.bidi
Class Connection
java.lang.Object
org.openqa.selenium.bidi.Connection
- All Implemented Interfaces:
Closeable
,AutoCloseable
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<X> long
addListener
(Event<X> event, Consumer<X> handler) <X> void
clearListener
(Event<X> event) void
void
close()
<X> boolean
isEventSubscribed
(Event<X> event) void
removeListener
(long id) <X> CompletableFuture<X>
<X> X
sendAndWait
(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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-