From 1f168bd9c7d6d04e69d885b924c325648db4f3cf Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Thu, 12 Aug 2021 01:49:56 -0700 Subject: [PATCH] docs: fix java auth example (#8155) Fixes #8153 --- docs/src/auth.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/auth.md b/docs/src/auth.md index 48fe2d7544..4ca67b34a6 100644 --- a/docs/src/auth.md +++ b/docs/src/auth.md @@ -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(