parent
44cdda43fe
commit
1f168bd9c7
|
|
@ -110,7 +110,7 @@ const context = await browser.newContext({ storageState: 'state.json' });
|
||||||
|
|
||||||
```java
|
```java
|
||||||
// Save storage state into the file.
|
// Save storage state into the file.
|
||||||
context.storageState(new BrowserContext.StorageStateOptions().setPath("state.json"));
|
context.storageState(new BrowserContext.StorageStateOptions().setPath(Paths.get("state.json")));
|
||||||
|
|
||||||
// Create a new context with the saved storage state.
|
// Create a new context with the saved storage state.
|
||||||
BrowserContext context = browser.newContext(
|
BrowserContext context = browser.newContext(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue