From 9727e1c69f72850408cf7926375c7f5676637b01 Mon Sep 17 00:00:00 2001 From: Christopher Dunderdale <47271795+thatstatsguy@users.noreply.github.com> Date: Tue, 9 Apr 2024 20:03:49 +0200 Subject: [PATCH] Update auth.md Signed-off-by: Christopher Dunderdale <47271795+thatstatsguy@users.noreply.github.com> --- docs/src/auth.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/src/auth.md b/docs/src/auth.md index ba7af6f4cd..809837081f 100644 --- a/docs/src/auth.md +++ b/docs/src/auth.md @@ -296,15 +296,16 @@ context = browser.new_context(storage_state="state.json") ```csharp // Save storage state into the file. +// Tests are executed in \bin\Debug\netX.0\ therefore relative path is used to reference playwright/.auth created in project root await context.StorageStateAsync(new() { - Path = "state.json" + Path = "../../../playwright/.auth/state.json" }); // Create a new context with the saved storage state. var context = await browser.NewContextAsync(new() { - StorageStatePath = "state.json" + StorageStatePath = "../../../state.json" }); ```