Skip to content

how to pass click modifiers as array #371

@KkEeVvIiNnn

Description

@KkEeVvIiNnn

(playwright) xiaoxu@U-HJC7YJ37-1836 ~ % playwright-cli -s=example click e454 --modifiers='["ControlOrMeta"]'
/opt/homebrew/lib/node_modules/@playwright/cli/node_modules/playwright-core/lib/tools/cli-client/session.js:273
callback.reject(new Error(object.error));
^

Error: error: '--modifiers' option: expected array, received string
at SocketConnectionClient._onMessage (/opt/homebrew/lib/node_modules/@playwright/cli/node_modules/playwright-core/lib/tools/cli-client/session.js:273:25)
at SocketConnectionClient._connection.onmessage (/opt/homebrew/lib/node_modules/@playwright/cli/node_modules/playwright-core/lib/tools/cli-client/session.js:241:52)
at SocketConnection._dispatchMessage (/opt/homebrew/lib/node_modules/@playwright/cli/node_modules/playwright-core/lib/tools/utils/socketConnection.js:70:23)
at SocketConnection._onData (/opt/homebrew/lib/node_modules/@playwright/cli/node_modules/playwright-core/lib/tools/utils/socketConnection.js:57:10)
at Socket. (/opt/homebrew/lib/node_modules/@playwright/cli/node_modules/playwright-core/lib/tools/utils/socketConnection.js:29:40)
at Socket.emit (node:events:508:28)
at addChunk (node:internal/streams/readable:559:12)
at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)
at Readable.push (node:internal/streams/readable:390:5)
at Pipe.onStreamRead (node:internal/stream_base_commons:189:23)

Node.js v24.6.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions