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
Copy file name to clipboardExpand all lines: src/content/docs/browser-rendering/workers-binding-api/index.mdx
+36-14Lines changed: 36 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,27 +11,49 @@ The Workers Binding API allows you to execute advanced browser rendering scripts
11
11
12
12
The Workers Browser Rendering API allows developers to programmatically control and interact with a headless browser instance and create automation flows for their applications and products. Once you configure the service, Workers Browser Rendering gives you access to a WebSocket endpoint that speaks the [DevTools Protocol](https://chromedevtools.github.io/devtools-protocol/). DevTools is what allows Cloudflare to instrument a Chromium instance running in the Cloudflare global network.
13
13
14
-
### Checking chromium version
14
+
##Browser Rendering options
15
15
16
-
Choose one of the following options to confirm the Chromium version powering your rendering tasks:
16
+
The following options are available for browser rendering tasks:
17
17
18
-
1.**Check directly in your browser**
18
+
<DirectoryListing />
19
+
20
+
Use the Workers Binding API when you need advanced browser automation, custom workflows, or complex interactions beyond basic rendering. For quick, one-off tasks like capturing screenshots or extracting HTML, the [REST API](/browser-rendering/rest-api/) is the simpler choice.
19
21
20
-
Open Developer Tools in a full Chrome or Chromium browser instance. Navigate to `chrome://version` or open the menu > Help > About Google Chrome to view the exact version.
22
+
### Chromium version
23
+
Cloudflare Browser Rendering currently uses Chromium version 124.0.6367.257.
21
24
22
-
2.**Use `browser.version()` for automation tools like [Playwright](/browser-rendering/platform/playwright/) or [Puppeteer](/browser-rendering/platform/puppeteer/)**
25
+
If you want to programmatically confirm the version in your environment, you can retrieve it using either [Puppeteer](/browser-rendering/platform/puppeteer/) or [Playwright](/browser-rendering/platform/playwright/).
23
26
24
-
If you're using automation frameworks, you can programmatically retrieve the version:
27
+
#### Using [Puppeteer](/browser-rendering/platform/puppeteer/)
25
28
26
29
```javascript
27
-
constversion=awaitbrowser.version();
28
-
console.log("Chromium version:", version);
30
+
constpuppeteer=require('puppeteer');
31
+
32
+
(async () => {
33
+
constbrowser=awaitpuppeteer.launch();
34
+
constversion=awaitbrowser.version();
35
+
console.log('Chromium version:', version);
36
+
awaitbrowser.close();
37
+
})().catch(console.error);
38
+
```
39
+
Example output
40
+
```
41
+
Chromium version: 136.0.7103.25
29
42
```
30
43
31
-
## Browser Rendering options
32
-
33
-
The following options are available for browser rendering tasks:
34
-
35
-
<DirectoryListing />
44
+
#### Using [Playwright](/browser-rendering/platform/playwright/)
36
45
37
-
Use the Workers Binding API when you need advanced browser automation, custom workflows, or complex interactions beyond basic rendering. For quick, one-off tasks like capturing screenshots or extracting HTML, the [REST API](/browser-rendering/rest-api/) is the simpler choice.
0 commit comments