Function: openSitePage()
function openSitePage(
context,
siteUrl,
path,
__namedParameters?
): Promise<Page>;
Defined in: core/session.ts:80
Opens a page of the site (path relative to it) in a new tab and checks the session; throws
NotLoggedInError, closing the tab, when Moodle answers with its login page.
Parameters
| Parameter | Type |
|---|---|
context | BrowserContext |
siteUrl | string |
path | string |
__namedParameters | { follow?: boolean; } |
__namedParameters.follow? | boolean |
Returns
Promise<Page>