docs: added comments to the readme (#10552)

Co-authored-by: Alex Rudenko <OrKoN@users.noreply.github.com>
This commit is contained in:
Kushagra Agrawal 2023-07-14 15:07:17 +05:30 committed by GitHub
parent cb46413d87
commit 80af4d7c4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -143,9 +143,11 @@ The following example searches [developer.chrome.com](https://developer.chrome.c
import puppeteer from 'puppeteer'; import puppeteer from 'puppeteer';
(async () => { (async () => {
// Launch the browser and open a new blank page
const browser = await puppeteer.launch(); const browser = await puppeteer.launch();
const page = await browser.newPage(); const page = await browser.newPage();
// Navigate the page to a URL
await page.goto('https://developer.chrome.com/'); await page.goto('https://developer.chrome.com/');
// Set screen size // Set screen size