Class Connection

java.lang.Object
org.openqa.selenium.bidi.Connection
All Implemented Interfaces:
Closeable, AutoCloseable

public class Connection extends Object implements Closeable
  • Constructor Details

  • Method Details

    • send

      public <X> CompletableFuture<X> send(Command<X> command)
    • sendAndWait

      public <X> X sendAndWait(Command<X> command, Duration timeout)
    • addListener

      public <X> void addListener(Event<X> event, Consumer<X> handler)
    • clearListener

      public <X> void clearListener(Event<X> event)
    • isEventSubscribed

      public <X> boolean isEventSubscribed(Event<X> event)
    • clearListeners

      public void clearListeners()
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable