From 8d1d9fec65e04f1a78eca7f1f51579880f29f499 Mon Sep 17 00:00:00 2001 From: JoelEinbinder Date: Mon, 9 Oct 2017 13:28:48 -0700 Subject: [PATCH] chore(doc): replace 'could' with 'can' --- docs/api.md | 58 ++++++++++++++++++++++++++--------------------------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/docs/api.md b/docs/api.md index 03129bc1905..31a6c6fa13f 100644 --- a/docs/api.md +++ b/docs/api.md @@ -177,7 +177,7 @@ Puppeteer is a Node library which provides a high-level API to control Chromium ### Environment Variables -Puppeteer looks for certain [environment variables](https://en.wikipedia.org/wiki/Environment_variable) to aid its operations. These variables could be either set in the environment or in the [npm config](https://docs.npmjs.com/cli/config). +Puppeteer looks for certain [environment variables](https://en.wikipedia.org/wiki/Environment_variable) to aid its operations. These variables can either be set in the environment or in the [npm config](https://docs.npmjs.com/cli/config). - `HTTP_PROXY`, `HTTPS_PROXY`, `NO_PROXY` - defines HTTP proxy settings that are used to download and run Chromium. - `PUPPETEER_SKIP_CHROMIUM_DOWNLOAD` - do not download bundled Chromium during installation step. @@ -244,7 +244,7 @@ puppeteer.launch().then(async browser => { #### browser.close() - returns: <[Promise]> -Closes browser with all the pages (if any were opened). The browser object itself is considered to be disposed and could not be used anymore. +Closes browser with all the pages (if any were opened). The browser object itself is considered to be disposed and can not be used anymore. #### browser.newPage() - returns: <[Promise]<[Page]>> Promise which resolves to a new [Page] object. @@ -257,7 +257,7 @@ Closes browser with all the pages (if any were opened). The browser object itsel #### browser.wsEndpoint() - returns: <[string]> Browser websocket url. -Browser websocket endpoint which could be used as an argument to +Browser websocket endpoint which can be used as an argument to [puppeteer.connect](#puppeteerconnectoptions). The format is `ws://${host}:${port}/devtools/browser/` You can find the `webSocketDebuggerUrl` from `http://${host}:${port}/json/version`. Learn more about the [devtools protocol](https://chromedevtools.github.io/devtools-protocol) and the [browser endpoint](https://chromedevtools.github.io/devtools-protocol/#how-do-i-access-the-browser-target). @@ -390,7 +390,7 @@ Shortcut for [page.mainFrame().$eval(selector, pageFunction)](#frameevalselector - `url` <[string]> Url of the `