mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-15 06:02:57 +03:00
Update auth.md (#11700)
This commit is contained in:
parent
0698254253
commit
791860f31c
@ -242,7 +242,7 @@ context.add_init_script("""(storage => {
|
||||
|
||||
```csharp
|
||||
// Get session storage and store as env variable
|
||||
var sessionStorage = await page.EvaluateAsync<string>("() => JSON.stringify(sessionStorage");
|
||||
var sessionStorage = await page.EvaluateAsync<string>("() => JSON.stringify(sessionStorage)");
|
||||
Environment.SetEnvironmentVariable("SESSION_STORAGE", sessionStorage);
|
||||
|
||||
// Set session storage in a new context
|
||||
|
Loading…
Reference in New Issue
Block a user