microsoft / microsoft/playwright

[Feature] a dedicated clipboard API

Open
#15,860 9 comments 119 reactions 0 assignees View on GitHub
P3-collecting-feedback
Dominant language
TypeScript
Stars
96.3k
Forks
6.5k
Avg merge
1d 6h
Merged PRs (30d)
180

Description

It might be nice to have a dedicated clipboard API scoped to page.

Some ideas:

```js
await page.pasteText(text);
await page.keyboard.press('Ctrl + V');
await page.copySelection();
await context.clipboard.setContent(mimeType, content);
```

Contributor guide

Open the contributing guide

Research direction

No implementation files, tests, or entry points are named. Start by clarifying which clipboard operations and scopes are required from the proposed page, keyboard, and context APIs, then identify the relevant Playwright API and test areas. Done would require an agreed API design, implementation scope, and tests for the supported clipboard behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api, testing
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.