| PageClient Class | 
 Inheritance Hierarchy
Inheritance HierarchyNamespace: CefSharp.DevTools.Page
 Syntax
SyntaxThe PageClient type exposes the following members.
 Constructors
Constructors| Name | Description | |
|---|---|---|
|  | PageClient | 
            Page
             | 
 Methods
Methods| 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(ContentEncoding) | (Inherited from DevToolsDomainBase.) | 
|  | EnumToString(CSPViolationType) | (Inherited from DevToolsDomainBase.) | 
|  | EnumToString(DisabledImageType) | (Inherited from DevToolsDomainBase.) | 
|  | 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.
             | 
|  | GetAdScriptIdAsync | 
            GetAdScriptId
             | 
|  | GetAppIdAsync | 
            Returns the unique (PWA) app id.
            Only returns values if the feature flag 'WebAppEnableManifestId' is enabled
             | 
|  | 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.
             | 
|  | GetNavigationHistoryAsync | 
            Returns navigation history for the current page.
             | 
|  | GetOriginTrialsAsync | 
            Get Origin Trials on given frame.
             | 
|  | GetPermissionsPolicyStateAsync | 
            Get Permissions Policy state on given frame.
             | 
|  | 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.
             | 
|  | ProduceCompilationCacheAsync | 
            Requests backend to produce compilation cache for the specified scripts.
            `scripts` are appeneded to the list of scripts for which the cache
            would be produced. The list may be reset during page navigation.
            When script with a matching URL is encountered, the cache is optionally
            produced upon backend discretion, based on internal heuristics.
            See also: `Page.compilationCacheProduced`.
             | 
|  | 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.
             | 
|  | SetPrerenderingAllowedAsync | 
            Enable/disable prerendering manually.
            
            This command is a short-term solution for https://crbug.com/1440085.
            See https://docs.google.com/document/d/12HVmFxYj5Jc-eJr5OmWsa2bqTJsbgGLKI6ZIyx0_wpA
            for more details.
            
            TODO(https://crbug.com/1440085): Remove this once Puppeteer supports tab targets.
             | 
|  | SetRPHRegistrationModeAsync | 
            Extensions for Custom Handlers API:
            https://html.spec.whatwg.org/multipage/system-state.html#rph-automation
             | 
|  | SetSPCTransactionModeAsync | 
            Sets the Secure Payment Confirmation transaction mode.
            https://w3c.github.io/secure-payment-confirmation/#sctn-automation-set-spc-transaction-mode
             | 
|  | 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.
             | 
 Events
Events| Name | Description | |
|---|---|---|
|  | BackForwardCacheNotUsed | 
            Fired for failed bfcache history navigations if BackForwardCache feature is enabled. Do
            not assume any ordering with the Page.frameNavigated event. This event is fired only for
            main-frame history navigation where the document changes (non-same-document navigations),
            when bfcache navigation fails.
             | 
|  | CompilationCacheProduced | 
            Issued for every compilation cache generated. Is only available
            if Page.setGenerateCompilationCache is enabled.
             | 
|  | DocumentOpened | 
            Fired when opening document to write to.
             | 
|  | DomContentEventFired | 
            DomContentEventFired
             | 
|  | FileChooserOpened | 
            Emitted only when `page.interceptFileChooser` is enabled.
             | 
|  | FrameAttached | 
            Fired when frame has been attached to its parent.
             | 
|  | FrameDetached | 
            Fired when frame has been detached from its parent.
             | 
|  | FrameNavigated | 
            Fired once navigation of the frame has completed. Frame is now associated with the new loader.
             | 
|  | FrameRequestedNavigation | 
            Fired when a renderer-initiated navigation is requested.
            Navigation may still be cancelled after the event is issued.
             | 
|  | FrameResized | 
            FrameResized
             | 
|  | FrameStartedLoading | 
            Fired when frame has started loading.
             | 
|  | FrameStoppedLoading | 
            Fired when frame has stopped loading.
             | 
|  | InterstitialHidden | 
            Fired when interstitial page was hidden
             | 
|  | InterstitialShown | 
            Fired when interstitial page was shown
             | 
|  | JavascriptDialogClosed | 
            Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) has been
            closed.
             | 
|  | JavascriptDialogOpening | 
            Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) is about to
            open.
             | 
|  | LifecycleEvent | 
            Fired for top level page lifecycle events such as navigation, load, paint, etc.
             | 
|  | LoadEventFired | 
            LoadEventFired
             | 
|  | NavigatedWithinDocument | 
            Fired when same-document navigation happens, e.g. due to history API usage or anchor navigation.
             | 
|  | ScreencastFrame | 
            Compressed image data requested by the `startScreencast`.
             | 
|  | ScreencastVisibilityChanged | 
            Fired when the page with currently enabled screencast was shown or hidden `.
             | 
|  | WindowOpen | 
            Fired when a new window is going to be opened, via window.open(), link click, form submission,
            etc.
             | 
 See Also
See Also