mirror of
https://github.com/hanzoai/puppeteer.git
synced 2026-09-24 17:02:14 +00:00
638 B
638 B
sidebar_label
| sidebar_label |
|---|
| Page.setOfflineMode |
Page.setOfflineMode() method
Emulates the offline mode.
It does not change the download/upload/latency parameters set by Page.emulateNetworkConditions()
Signature
class Page {
abstract setOfflineMode(enabled: boolean): Promise<void>;
}
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
enabled |
boolean |
When |
Returns:
Promise<void>