puppeteer/docs/api/puppeteer.page.setofflinemode.md
dependabot[bot] 93e9acc410
chore(deps-dev): Bump the dev-dependencies group with 3 updates (#12101)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Nikolay Vitkov <nvitkov@chromium.org>
2024-03-20 15:03:14 +00:00

629 B

sidebar_label
Page.setOfflineMode

Page.setOfflineMode() method

Sets the network connection to offline.

It does not change the parameters used in Page.emulateNetworkConditions()

Signature:

class Page {
  abstract setOfflineMode(enabled: boolean): Promise<void>;
}

Parameters

Parameter

Type

Description

enabled

boolean

When true, enables offline mode for the page.

**Returns:**

Promise<void>