You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ensure the paths for User Data Dir, executablePath, and the Profile Name inside the script are correct for your system.
Close related Chrome instances (check Task Manager).
Run node test.js.
Observe Chrome opens about:blank.
// Ultra-brief script for issue: launchPersistentContext (direct paths)const{ chromium }=require('playwright');(async()=>{console.log('Attempting to launch profile with direct paths...');try{constcontext=awaitchromium.launchPersistentContext(// --- ENSURE THIS PATH IS CORRECT ---'C:\\Users\\Windows 10\\AppData\\Local\\Google\\Chrome\\User Data',// User Data Dir{headless: false,// --- ENSURE THIS PATH IS CORRECT ---executablePath: 'C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe',// Chrome Path// --- ENSURE THIS PROFILE FOLDER EXISTS within User Data Dir ---args: ['--profile-directory=Profile 13']// Profile Name});console.log('Context launched. Verifying page...');constpage=context.pages()[0]||awaitcontext.newPage();awaitpage.goto('https://example.com');// Simple navigation testconsole.log(`Navigated to ${page.url()}. Browser will remain open.`);awaitnewPromise(()=>{});// Keep script alive}catch(error){console.error(`\n--- ERROR ---`);console.error(error.message);process.exit(1);}})();
Expected behavior
A Chrome window should open using my Profile 13, showing its usual start page or state, and then navigate to https://example.com.
Actual behavior
A Chrome window opens showing only an about:blank page. The script then navigates this blank page to https://example.com, but the original profile state (extensions, cookies, etc.) is missing.
Additional context
This issue happens with any Chrome profile.
Environment
System:
OS: Windows 10 / Windows 11 (VM)
Binaries:
Node: 22.13.0
npm: 10.9.2
Browsers:
Chrome: Version 136.0.7103.48 (Official Build) (64-bit)
npmPackages:
playwright: 1.52.0
The text was updated successfully, but these errors were encountered:
Version
1.52.0
Steps to reproduce
Steps to Reproduce
test.js
.node test.js
.about:blank
.Expected behavior
A Chrome window should open using my Profile 13, showing its usual start page or state, and then navigate to https://example.com.
Actual behavior
A Chrome window opens showing only an about:blank page. The script then navigates this blank page to https://example.com, but the original profile state (extensions, cookies, etc.) is missing.
Additional context
This issue happens with any Chrome profile.
Environment
The text was updated successfully, but these errors were encountered: