java.lang.Object
org.openqa.selenium.devtools.v126.target.model.TargetInfo

public class TargetInfo extends Object
  • Constructor Details

  • Method Details

    • getTargetId

      public TargetID getTargetId()
    • getType

      public String getType()
      List of types: https://source.chromium.org/chromium/chromium/src/+/main:content/browser/devtools/devtools_agent_host_impl.cc?ss=chromium&q=f:devtools%20-f:out%20%22::kTypeTab%5B%5D%22
    • getTitle

      public String getTitle()
    • getUrl

      public String getUrl()
    • getAttached

      public Boolean getAttached()
      Whether the target has an attached client.
    • getOpenerId

      public Optional<TargetID> getOpenerId()
      Opener target Id
    • getCanAccessOpener

      @Beta public Boolean getCanAccessOpener()
      Whether the target has access to the originating window.
    • getOpenerFrameId

      @Beta public Optional<FrameId> getOpenerFrameId()
      Frame id of originating window (is only set if target has an opener).
    • getBrowserContextId

      @Beta public Optional<BrowserContextID> getBrowserContextId()
    • getSubtype

      @Beta public Optional<String> getSubtype()
      Provides additional details for specific target types. For example, for the type of "page", this may be set to "portal" or "prerender".