We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hey, I would like to insert some data into a JS prompt like this one. Is that possible with puppeteer? Thanks 馃槑
The text was updated successfully, but these errors were encountered:
Yes. https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#event-dialog
Sorry, something went wrong.
There's a snippet in the API: https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#class-dialog
const puppeteer = require('puppeteer'); puppeteer.launch().then(async browser => { const page = await browser.newPage(); page.on('dialog', async dialog => { console.log(dialog.message()); await dialog.dismiss(); browser.close(); }); page.evaluate(() => alert('1')); });
@aslushnikov Thank you so much 馃槈
No branches or pull requests
Hey, I would like to insert some data into a JS prompt like this one. Is that possible with puppeteer?
Thanks 馃槑
The text was updated successfully, but these errors were encountered: