java.lang.Object
org.openqa.selenium.devtools.v114.page.model.Frame

public class Frame extends Object
Information about the Frame on the page.
  • Constructor Details

  • Method Details

    • getId

      public FrameId getId()
      Frame unique identifier.
    • getParentId

      public Optional<FrameId> getParentId()
      Parent frame identifier.
    • getLoaderId

      public LoaderId getLoaderId()
      Identifier of the loader associated with this frame.
    • getName

      public Optional<String> getName()
      Frame's name as specified in the tag.
    • getUrl

      public String getUrl()
      Frame document's URL without fragment.
    • getUrlFragment

      @Beta public Optional<String> getUrlFragment()
      Frame document's URL fragment including the '#'.
    • getDomainAndRegistry

      @Beta public String getDomainAndRegistry()
      Frame document's registered domain, taking the public suffixes list into account. Extracted from the Frame's url. Example URLs: http://www.google.com/file.html -> "google.com" http://a.b.co.uk/file.html -> "b.co.uk"
    • getSecurityOrigin

      public String getSecurityOrigin()
      Frame document's security origin.
    • getMimeType

      public String getMimeType()
      Frame document's mimeType as determined by the browser.
    • getUnreachableUrl

      @Beta public Optional<String> getUnreachableUrl()
      If the frame failed to load, this contains the URL that could not be loaded. Note that unlike url above, this URL may contain a fragment.
    • getAdFrameStatus

      @Beta public Optional<AdFrameStatus> getAdFrameStatus()
      Indicates whether this frame was tagged as an ad and why.
    • getSecureContextType

      @Beta public SecureContextType getSecureContextType()
      Indicates whether the main document is a secure context and explains why that is the case.
    • getCrossOriginIsolatedContextType

      @Beta public CrossOriginIsolatedContextType getCrossOriginIsolatedContextType()
      Indicates whether this is a cross origin isolated context.
    • getGatedAPIFeatures

      @Beta public List<GatedAPIFeatures> getGatedAPIFeatures()
      Indicated which gated APIs / features are available.