Bug Fixes
- Fix hung navigations on YouTube and similar sites: Resume filtered targets (like service workers) to avoid blocking navigations. CDP
Target.setAutoAttachwithwaitForDebuggerOnStart: truerequires callingRuntime.runIfWaitingForDebuggereven on targets we filter out, otherwise they hang forever. - Fix auto-enable page selection when no pages: Properly handles the case when there are no existing pages during auto-enable
Features
- CDP JSONL logging: Added structured CDP logging to a JSONL file (
/tmp/playwriter/cdp.jsonl) for debugging. Log all CDP messages with direction, timestamp, and source info. Usejqto analyze. - Sync tab state for automated tabs: Tab state is now properly synced for programmatically created tabs
Improvements
- Better logging output: Use
util.inspectfor cleaner log output with proper object formatting - Set default timeout: Added sensible default timeouts for operations