Skip to content

PLAYWRIGHT_CLI_SESSION doesn't work with 'attach' #414

@roblourens

Description

@roblourens
# 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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions