Navigation

Get Ready Status

Returns the documents current loading state (such as loading, interactive, or complete) if the script is running in the top-level window, allowing callers to determine how far page initialization has progressed.

Examples

GPAL Fluent: High-level fluent C# API

//Said once on the browser, and it decides what GPAL waits for whenever it sees a navigation. It is not a call a workflow makes: GPAL asks the page itself, as often as it needs to, until the document is ready or the time is up. The layers below are that question asked once.

.WithWaitOnDocumentReady(30_000); // how long to wait for the document, and mutually excludes WithWaitOnIdleConnection

MagicHelper: MagicHelper utility library

browser.MagicHelper.GetReadyStatus();

Puppeteer Client: Puppeteer-style C# client

browser.PuppeteerClient.GetReadyStatus().Execute();

Puppeteer Communicator: Low-level communicator

await browser.PuppeteerCommunicator.GetReadyStatus(string sessionId, string sessionToken);

REST Client: Direct REST/HTTP client

browser.OttoMagicClient.WithEndpoint(ApiEndpoint.GetReadyStatus).Execute();

💬 Ask GPAL