PageClient Methods |
The PageClient type exposes the following members.
Name | Description | |
---|---|---|
AddCompilationCacheAsync |
Seeds compilation cache for given url. Compilation cache does not survive
cross-process navigation.
| |
AddScriptToEvaluateOnNewDocumentAsync |
Evaluates given script in every frame upon creation (before loading frame's scripts).
| |
BringToFrontAsync |
Brings page to front (activates tab).
| |
CaptureScreenshotAsync |
Capture page screenshot.
| |
CaptureSnapshotAsync |
Returns a snapshot of the page as a string. For MHTML format, the serialization includes
iframes, shadow DOM, external resources, and element-inline styles.
| |
ClearCompilationCacheAsync |
Clears seeded compilation cache.
| |
CloseAsync |
Tries to close page, running its beforeunload hooks, if any.
| |
CrashAsync |
Crashes renderer on the IO thread, generates minidumps.
| |
CreateIsolatedWorldAsync |
Creates an isolated world for the given frame.
| |
DisableAsync |
Disables page domain notifications.
| |
EnableAsync |
Enables page domain notifications.
| |
EnumToString(Enum) | (Inherited from DevToolsDomainBase.) | |
EnumToString(PermissionType) | (Inherited from DevToolsDomainBase.) | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GenerateTestReportAsync |
Generates a report for testing.
| |
GetAppManifestAsync |
GetAppManifest
| |
GetFrameTreeAsync |
Returns present frame tree structure.
| |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetInstallabilityErrorsAsync |
GetInstallabilityErrors
| |
GetLayoutMetricsAsync |
Returns metrics relating to the layouting of the page, such as viewport bounds/scale.
| |
GetManifestIconsAsync |
GetManifestIcons
| |
GetNavigationHistoryAsync |
Returns navigation history for the current page.
| |
GetResourceContentAsync |
Returns content of the given resource.
| |
GetResourceTreeAsync |
Returns present frame / resource tree structure.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
HandleJavaScriptDialogAsync |
Accepts or dismisses a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload).
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
NavigateAsync |
Navigates current page to the given URL.
| |
NavigateToHistoryEntryAsync |
Navigates current page to the given history entry.
| |
PrintToPDFAsync |
Print page as PDF.
| |
ReloadAsync |
Reloads given page optionally ignoring the cache.
| |
RemoveScriptToEvaluateOnNewDocumentAsync |
Removes given script from the list.
| |
ResetNavigationHistoryAsync |
Resets navigation history for the current page.
| |
ScreencastFrameAckAsync |
Acknowledges that a screencast frame has been received by the frontend.
| |
SearchInResourceAsync |
Searches for given string in resource content.
| |
SetAdBlockingEnabledAsync |
Enable Chrome's experimental ad filter on all sites.
| |
SetBypassCSPAsync |
Enable page Content Security Policy by-passing.
| |
SetDocumentContentAsync |
Sets given markup as the document's HTML.
| |
SetFontFamiliesAsync |
Set generic font families.
| |
SetFontSizesAsync |
Set default font sizes.
| |
SetInterceptFileChooserDialogAsync |
Intercept file chooser requests and transfer control to protocol clients.
When file chooser interception is enabled, native file chooser dialog is not shown.
Instead, a protocol event `Page.fileChooserOpened` is emitted.
| |
SetLifecycleEventsEnabledAsync |
Controls whether page will emit lifecycle events.
| |
SetProduceCompilationCacheAsync |
Forces compilation cache to be generated for every subresource script.
| |
SetWebLifecycleStateAsync |
Tries to update the web lifecycle state of the page.
It will transition the page to the given state according to:
https://github.com/WICG/web-lifecycle/
| |
StartScreencastAsync |
Starts sending each frame using the `screencastFrame` event.
| |
StopLoadingAsync |
Force the page stop all navigations and pending resource fetches.
| |
StopScreencastAsync |
Stops sending each frame in the `screencastFrame`.
| |
ToBase64String | (Inherited from DevToolsDomainBase.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
WaitForDebuggerAsync |
Pauses page execution. Can be resumed using generic Runtime.runIfWaitingForDebugger.
|