What needs to change in my existing Playwright script?
Start by updating browser creation, connection, and cleanup. Connect to Lexmount Chromium through CDP, then validate your existing page interactions.
Create a browser session through Lexmount, then connect Playwright using the returned connection URL. Close the cloud session when the task finishes to release its resources.
Check code that uses local files, uploads, downloads, or browser-specific capabilities separately. Files downloaded in the cloud do not appear on your computer automatically; retrieve them through the download API.
- Choose one complete workflow and replace its browser startup and connection logic.
- Verify page interactions, file handling, and task results.
- Confirm sessions are cleaned up after both completion and failure before scaling up.
CDP connections apply to Chromium and differ in capabilities from native Playwright connections. Some scripts may need additional changes.
