GUIDE
Playwright
Launch persistent Firefox contexts from inspectable scripts.
Overview
Start with the smallest reproducible environment. Record the profile directory, platform identity, regional settings, proxy configuration and automation entry point before scaling.
Workflow
Launch persistent Firefox contexts from inspectable scripts.
- Create an empty profile
- Choose a coherent platform identity
- Assign and test the network route
- Launch and inspect the environment
- Back up the working configuration
Inspectable example
Use an explicit profile path and keep launch errors observable.
const context = await firefox.launchPersistentContext(profilePath, {
headless: false,
proxy: { server: proxyUrl }
});Verification checklist
Validate the environment before adding more profiles.
- The profile launches without shared storage
- External IP and region are expected
- Locale and timezone agree with the chosen region
- A restart preserves the intended session
- Errors remain visible in the operation log