Troubleshooting
Browser path issues
Section titled “Browser path issues”- Confirm
chromePathorCHROME_PATHpoints to a real browser executable. - Make sure the browser version can start with remote debugging enabled.
Timing issues
Section titled “Timing issues”- Use
waitForDocumentReadybefore DOM interaction. - Prefer
waitForElementinstead of fixed delays whenever possible.
Attach mode
Section titled “Attach mode”- Provide one of
pageWSEndpoint,browserWSEndpoint, ordevToolsPort. - Include
processIdwhen you want process-aware cleanup.