Skip to content

docs: show a hosted CDP URL in a browser job - #212

Closed
laotoutou wants to merge 1 commit into
mborsetti:unreleasedfrom
laotoutou:docs/hosted-browser-cdp
Closed

laotoutou wants to merge 1 commit into
mborsetti:unreleasedfrom
laotoutou:docs/hosted-browser-cdp

Conversation

@laotoutou

Copy link
Copy Markdown

The CDP walkthrough explains how to discover a socket for Chrome started locally. It now also shows how to use a complete WSS URL supplied by an existing host, including the path and query string, through webchanges' !env syntax. The example uses a dedicated Chrome profile and the wording explains what happens when the job disconnects.

I ran the exact YAML with webchanges --test 1 against example.org using a temporary Chrome provisioned via the Cloud Browser CLI. A second job read a synthetic local-storage marker from the running profile both with the default behavior and with WEBCHANGES_BROWSER_CDP_CACHE=0. The original test tab stayed open and the host still reported the browser running. The browser was then deleted. The test output did not contain the WSS URL.

The schema, YAML storage and browser unit tests completed with 367 passing and 9 skipped. sphinx-build -W -b html built the docs and verified the inserted example.

Disclosure: I contribute on behalf of Cloudbrowser, which supplied the disposable test browser and is linked as one example of a service that issues a full browser-level WSS URL. AI assisted with testing and preparing the change.

@mborsetti

Copy link
Copy Markdown
Owner

Thanks for the contribution. I'm closing this one: !env already works on any string value, including connect_over_cdp, and the docs don't link to commercial services. I've added the advice about using a dedicated browser profile (job cookies persist in the attached browser) to the CDP walkthrough directly.

@mborsetti mborsetti closed this Dec 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants