This is how you can toggle between local testing with a headful browser, to connecting your script to a deployed Chrome container in production.
In reality you’ll probably want to deploy the Docker container to your cloud platform instead of running it on localhost.
You can now modify the test script however you want, or add Finic to an existing web automation project by using playwright.connect_over_cdp() or puppeteer.connect()