Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add documentation to Mouse class for copy-pasting text #6000

Merged

Commits on Jun 11, 2020

  1. Add documentation to Mouse class for copy-pasting text

    There are numerous issues on the Puppeteer issue tracker
    about selecting and copy-pasting of text (puppeteer#3252, puppeteer#4954,
     puppeteer#423, puppeteer#1366, puppeteer#343) as well as several Stackoverflow questions:
    
    - https://stackoverflow.com/questions/57101467/how-do-you-paste-text-using-puppeteer
    - https://stackoverflow.com/questions/49131516/how-to-copy-text-from-browser-clipboard-using-puppeteer-in-nodejs
    - https://stackoverflow.com/questions/60158746/how-do-i-access-the-contents-of-the-clipboard-from-within-a-headless-puppeteer-t
    - https://stackoverflow.com/questions/56306153/domexception-on-calling-navigator-clipboard-readtext
    
    I myself have spent a considerable amount of time trying to figure
    out the combination of required APIs. Therefore, I propose we
    include this commonly-asked question in the main documentation.
    
    Fixes puppeteer#3252
    Fixes puppeteer#4954
    TimvdLippe committed Jun 11, 2020
    Configuration menu
    Copy the full SHA
    f1a6c79 View commit details
    Browse the repository at this point in the history