-
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1add28a
commit 74f1e21
Showing
1 changed file
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
<img src="./logo.png" height="200" align="right"> | ||
|
||
###### [API](https://github.com/puppeteer/puppeteer/blob/v9.0.0/docs/api.md) | ||
###### [API](https://github.com/puppeteer/puppeteer/blob/v9.0.1/docs/api.md) | ||
|
||
A fork of [Puppeteer](https://pptr.dev/) running on Deno. | ||
|
||
|
@@ -24,14 +24,14 @@ Most things that you can do manually in the browser can be done using Puppeteer! | |
To use Puppeteer, import it like so: | ||
|
||
```ts | ||
import puppeteer from "https://deno.land/x/[email protected].0/mod.ts"; | ||
import puppeteer from "https://deno.land/x/[email protected].1/mod.ts"; | ||
``` | ||
|
||
Puppeteer can use any recent version of Chromium or Firefox Nightly, but this version of Puppeteer is only validated against a specific version. To cache these versions in the Puppeteer cache, run the commands below. | ||
|
||
```shell | ||
PUPPETEER_PRODUCT=chrome deno run -A --unstable https://deno.land/x/[email protected].0/install.ts | ||
PUPPETEER_PRODUCT=firefox deno run -A --unstable https://deno.land/x/[email protected].0/install.ts | ||
PUPPETEER_PRODUCT=chrome deno run -A --unstable https://deno.land/x/[email protected].1/install.ts | ||
PUPPETEER_PRODUCT=firefox deno run -A --unstable https://deno.land/x/[email protected].1/install.ts | ||
``` | ||
|
||
You can find all of the supported environment variables to customize installation [in the Puppeteer docs](https://pptr.dev/#?product=Puppeteer&version=v5.5.0&show=api-environment-variables). | ||
|
@@ -45,7 +45,7 @@ Puppeteer will be familiar to people using other browser testing frameworks. You | |
Save file as **example.js** | ||
|
||
```js | ||
import puppeteer from "https://deno.land/x/[email protected].0/mod.ts"; | ||
import puppeteer from "https://deno.land/x/[email protected].1/mod.ts"; | ||
|
||
const browser = await puppeteer.launch(); | ||
const page = await browser.newPage(); | ||
|
@@ -68,7 +68,7 @@ Puppeteer sets an initial page size to 800×600px, which defines the screenshot | |
Save file as **hn.js** | ||
|
||
```js | ||
import puppeteer from "https://deno.land/x/[email protected].0/mod.ts"; | ||
import puppeteer from "https://deno.land/x/[email protected].1/mod.ts"; | ||
|
||
const browser = await puppeteer.launch(); | ||
const page = await browser.newPage(); | ||
|
@@ -93,7 +93,7 @@ See [`Page.pdf()`](https://github.com/puppeteer/puppeteer/blob/v5.5.0/docs/api.m | |
Save file as **get-dimensions.js** | ||
|
||
```js | ||
import puppeteer from "https://deno.land/x/[email protected].0/mod.ts"; | ||
import puppeteer from "https://deno.land/x/[email protected].1/mod.ts"; | ||
|
||
const browser = await puppeteer.launch(); | ||
const page = await browser.newPage(); | ||
|