-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Open
Labels
Description
I'm trying to get the localStorage of an app via:
const storage = await context.storageState(); and it outputs: { cookies: [], origins: [] }
and then I try:
const localStorage = await page.evaluate(() =>
JSON.stringify(window.localStorage)
);
console.log(localStorage);and I get: page.evaluate: Evaluation failed: DOMException: Failed to read the 'localStorage' property from 'Window': Access is denied for this document.
I know this page has localStorage because In between tests, I can see the localStorage in the Application tab.
Reactions are currently unavailable