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
Copy element(licenskey) from one page and add it to another #4954
Comments
TimvdLippe
added a commit
to TimvdLippe/puppeteer
that referenced
this issue
Jun 11, 2020
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
mathiasbynens
pushed a commit
that referenced
this issue
Jun 12, 2020
There are numerous issues on the Puppeteer issue tracker about selecting and copy-pasting of text (#3252, #4954, #423, #1366, #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 propose we include this commonly-asked question in the main documentation. Fixes #3252. Fixes #4954.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Steps to reproduce
Tell us about your environment:
What steps will reproduce the problem?
I working on a project, where i generate a licens key and then create an account using that licens key.. But i happens on 2 different pages.
Because of workguidelines i cannot share the urls or the code, but i hoped you would be able to help me anyways.
What is the expected result?
I need to copy the element, where the licens key is generated and insert it on the next page. My puppeteer script is working perfect, but the only part im missing is the "remembering" og copy/paste part of the licens key.
What happens instead?
Nothing is happening. I cant even define the value?
The text was updated successfully, but these errors were encountered: