You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A fork of [Puppeteer](https://pptr.dev/) running on Deno.
8
8
9
-
> Puppeteer is a library which provides a high-level API to control Chrome, Chromium, or Firefox Nightly over the DevTools Protocol. Puppeteer runs headless by default, but can be configured to run full (non-headless) Chrome or Chromium.
9
+
> Puppeteer is a library which provides a high-level API to control Chrome,
10
+
> Chromium, or Firefox Nightly over the DevTools Protocol. Puppeteer runs
11
+
> headless by default, but can be configured to run full (non-headless) Chrome
12
+
> or Chromium.
10
13
11
-
Most things that you can do manually in the browser can be done using Puppeteer! Here are a few examples to get you started:
14
+
Most things that you can do manually in the browser can be done using Puppeteer!
15
+
Here are a few examples to get you started:
12
16
13
17
- Generate screenshots and PDFs of pages.
14
-
- Crawl a SPA (Single-Page Application) and generate pre-rendered content (i.e. "SSR" (Server-Side Rendering)).
18
+
- Crawl a SPA (Single-Page Application) and generate pre-rendered content (i.e.
19
+
"SSR" (Server-Side Rendering)).
15
20
- Automate form submission, UI testing, keyboard input, etc.
16
-
- Create an up-to-date, automated testing environment. Run your tests directly in the latest version of Chrome using the latest JavaScript and browser features.
21
+
- Create an up-to-date, automated testing environment. Run your tests directly
22
+
in the latest version of Chrome using the latest JavaScript and browser
23
+
features.
17
24
- Capture a timeline trace of your site to help diagnose performance issues.
18
25
- Test Chrome Extensions.
19
26
@@ -24,28 +31,35 @@ Most things that you can do manually in the browser can be done using Puppeteer!
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.
37
+
Puppeteer can use any recent version of Chromium or Firefox Nightly, but this
38
+
version of Puppeteer is only validated against a specific version. To cache
39
+
these versions in the Puppeteer cache, run the commands below.
31
40
32
41
```shell
33
-
PUPPETEER_PRODUCT=chrome deno run -A --unstable https://deno.land/x/puppeteer@9.0.1/install.ts
34
-
PUPPETEER_PRODUCT=firefox deno run -A --unstable https://deno.land/x/puppeteer@9.0.1/install.ts
42
+
PUPPETEER_PRODUCT=chrome deno run -A --unstable https://deno.land/x/puppeteer@9.0.2/install.ts
43
+
PUPPETEER_PRODUCT=firefox deno run -A --unstable https://deno.land/x/puppeteer@9.0.2/install.ts
35
44
```
36
45
37
-
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).
46
+
You can find all of the supported environment variables to customize
47
+
installation
48
+
[in the Puppeteer docs](https://pptr.dev/#?product=Puppeteer&version=v5.5.0&show=api-environment-variables).
38
49
39
50
### Usage
40
51
41
-
Puppeteer will be familiar to people using other browser testing frameworks. You create an instance of `Browser`, open pages, and then manipulate them with Puppeteer's API.
52
+
Puppeteer will be familiar to people using other browser testing frameworks. You
53
+
create an instance of `Browser`, open pages, and then manipulate them with
54
+
Puppeteer's API.
42
55
43
-
**Example** - navigating to https://example.com and saving a screenshot as _example.png_:
56
+
**Example** - navigating to https://example.com and saving a screenshot as
@@ -61,14 +75,16 @@ Execute script on the command line
61
75
deno run -A --unstable example.js
62
76
```
63
77
64
-
Puppeteer sets an initial page size to 800×600px, which defines the screenshot size. The page size can be customized with [`Page.setViewport()`](https://github.com/puppeteer/puppeteer/blob/v5.5.0/docs/api.md#pagesetviewportviewport).
78
+
Puppeteer sets an initial page size to 800×600px, which defines the screenshot
0 commit comments