You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This example is from Puppeteer's docs to copy text:
awaitbrowser.defaultBrowserContext().overridePermissions('<your origin>',['clipboard-read','clipboard-write']);// The clipboard API does not allow you to copy, unless the tab is focused.awaitpage.bringToFront();awaitpage.evaluate(()=>{// Copy the selected content to the clipboarddocument.execCommand('copy');// Obtain the content of the clipboard as a stringreturnnavigator.clipboard.readText();});
Since it is so complicated, maybe we should implement user.copy() that does all this automatically. Paste probably is also as complicated, so maybe user.paste() too.
The text was updated successfully, but these errors were encountered:
I had this in "up next", but even though it is easy to implement I don't think I'll implement it until someone comments on here saying this is a feature they need. It seems relatively uncommon.
This example is from Puppeteer's docs to copy text:
Since it is so complicated, maybe we should implement
user.copy()
that does all this automatically. Paste probably is also as complicated, so maybeuser.paste()
too.The text was updated successfully, but these errors were encountered: