Class RemoteNode

java.lang.Object
org.openqa.selenium.grid.node.Node
org.openqa.selenium.grid.node.remote.RemoteNode
All Implemented Interfaces:
Closeable, AutoCloseable, org.openqa.selenium.remote.http.HttpHandler, org.openqa.selenium.remote.http.Routable, HasReadyState

public class RemoteNode extends Node implements Closeable
  • Field Details

    • JSON

      public static final org.openqa.selenium.json.Json JSON
  • Constructor Details

    • RemoteNode

      public RemoteNode(org.openqa.selenium.remote.tracing.Tracer tracer, org.openqa.selenium.remote.http.HttpClient.Factory clientFactory, NodeId id, URI externalUri, Secret registrationSecret, Collection<org.openqa.selenium.Capabilities> capabilities)
  • Method Details

    • isReady

      public boolean isReady()
      Specified by:
      isReady in interface HasReadyState
    • isSupporting

      public boolean isSupporting(org.openqa.selenium.Capabilities capabilities)
      Specified by:
      isSupporting in class Node
    • newSession

      public org.openqa.selenium.internal.Either<org.openqa.selenium.WebDriverException,CreateSessionResponse> newSession(CreateSessionRequest sessionRequest)
      Specified by:
      newSession in class Node
    • isSessionOwner

      public boolean isSessionOwner(org.openqa.selenium.remote.SessionId id)
      Specified by:
      isSessionOwner in class Node
    • getSession

      public Session getSession(org.openqa.selenium.remote.SessionId id) throws org.openqa.selenium.NoSuchSessionException
      Specified by:
      getSession in class Node
      Throws:
      org.openqa.selenium.NoSuchSessionException
    • executeWebDriverCommand

      public org.openqa.selenium.remote.http.HttpResponse executeWebDriverCommand(org.openqa.selenium.remote.http.HttpRequest req)
      Specified by:
      executeWebDriverCommand in class Node
    • uploadFile

      public org.openqa.selenium.remote.http.HttpResponse uploadFile(org.openqa.selenium.remote.http.HttpRequest req, org.openqa.selenium.remote.SessionId id)
      Specified by:
      uploadFile in class Node
    • downloadFile

      public org.openqa.selenium.remote.http.HttpResponse downloadFile(org.openqa.selenium.remote.http.HttpRequest req, org.openqa.selenium.remote.SessionId id)
      Specified by:
      downloadFile in class Node
    • stop

      public void stop(org.openqa.selenium.remote.SessionId id) throws org.openqa.selenium.NoSuchSessionException
      Specified by:
      stop in class Node
      Throws:
      org.openqa.selenium.NoSuchSessionException
    • getStatus

      public NodeStatus getStatus()
      Specified by:
      getStatus in class Node
    • getHealthCheck

      public HealthCheck getHealthCheck()
      Specified by:
      getHealthCheck in class Node
    • drain

      public void drain()
      Specified by:
      drain in class Node
    • close

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