Saltar al contenido principal

Function: fetchSitePage()

function fetchSitePage(
context,
siteUrl,
path,
__namedParameters?
): Promise<{
html: string;
url: string;
}>;

Defined in: core/session.ts:138

A page of the site over HTTP with the profile's session, without a tab (ADR-011): its final URL and HTML. Throws NotLoggedInError when Moodle answers with its login page. While the browser is shown, the working tab shows the page afterwards (ADR-007), unless follow is false.

Parameters​

ParameterType
contextBrowserContext
siteUrlstring
pathstring
__namedParameters{ follow?: boolean; }
__namedParameters.follow?boolean

Returns​

Promise<{ html: string; url: string; }>