Class Frame
java.lang.Object
org.openqa.selenium.devtools.v114.page.model.Frame
Information about the Frame on the page.
-
Constructor Summary
ConstructorsConstructorDescriptionFrame
(FrameId id, Optional<FrameId> parentId, LoaderId loaderId, Optional<String> name, String url, Optional<String> urlFragment, String domainAndRegistry, String securityOrigin, String mimeType, Optional<String> unreachableUrl, Optional<AdFrameStatus> adFrameStatus, SecureContextType secureContextType, CrossOriginIsolatedContextType crossOriginIsolatedContextType, List<GatedAPIFeatures> gatedAPIFeatures) -
Method Summary
Modifier and TypeMethodDescriptionIndicates whether this frame was tagged as an ad and why.Indicates whether this is a cross origin isolated context.Frame document's registered domain, taking the public suffixes list into account.Indicated which gated APIs / features are available.getId()
Frame unique identifier.Identifier of the loader associated with this frame.Frame document's mimeType as determined by the browser.getName()
Frame's name as specified in the tag.Parent frame identifier.Indicates whether the main document is a secure context and explains why that is the case.Frame document's security origin.If the frame failed to load, this contains the URL that could not be loaded.getUrl()
Frame document's URL without fragment.Frame document's URL fragment including the '#'.
-
Constructor Details
-
Frame
public Frame(FrameId id, Optional<FrameId> parentId, LoaderId loaderId, Optional<String> name, String url, Optional<String> urlFragment, String domainAndRegistry, String securityOrigin, String mimeType, Optional<String> unreachableUrl, Optional<AdFrameStatus> adFrameStatus, SecureContextType secureContextType, CrossOriginIsolatedContextType crossOriginIsolatedContextType, List<GatedAPIFeatures> gatedAPIFeatures)
-
-
Method Details
-
getId
Frame unique identifier. -
getParentId
Parent frame identifier. -
getLoaderId
Identifier of the loader associated with this frame. -
getName
Frame's name as specified in the tag. -
getUrl
Frame document's URL without fragment. -
getUrlFragment
Frame document's URL fragment including the '#'. -
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
Frame document's security origin. -
getMimeType
Frame document's mimeType as determined by the browser. -
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
Indicates whether this frame was tagged as an ad and why. -
getSecureContextType
Indicates whether the main document is a secure context and explains why that is the case. -
getCrossOriginIsolatedContextType
Indicates whether this is a cross origin isolated context. -
getGatedAPIFeatures
Indicated which gated APIs / features are available.
-