# starts a session with name=myname
PLAYWRIGHT_CLI_SESSION=myname npx @playwright/cli open https://microsoft.com
# Error: Daemon pid=51768: connect ENOENT myname
PLAYWRIGHT_CLI_SESSION=myname npx @playwright/cli attach --cdp=http://127.0.0.1:99999
# works
npx @playwright/cli attach --cdp=http://127.0.0.1:99999 -s=myname
I think that PLAYWRIGHT_CLI_SESSION is expected to be the name of the session, equivalent to -s, but it seems like PLAYWRIGHT_CLI_SESSION is confused with an endpoint to attach to.
I think that
PLAYWRIGHT_CLI_SESSIONis expected to be the name of the session, equivalent to-s, but it seems likePLAYWRIGHT_CLI_SESSIONis confused with an endpoint to attach to.