mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-14 21:53:35 +03:00
parent
44cdda43fe
commit
1f168bd9c7
@ -110,7 +110,7 @@ const context = await browser.newContext({ storageState: 'state.json' });
|
||||
|
||||
```java
|
||||
// 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.
|
||||
BrowserContext context = browser.newContext(
|
||||
|
Loading…
Reference in New Issue
Block a user