Skip to content

Commit e99c65c

Browse files
edits
1 parent aeb7e32 commit e99c65c

File tree

2 files changed

+49
-41
lines changed

2 files changed

+49
-41
lines changed
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
---
2+
pcx_content_type: reference
3+
title: Chromium version
4+
sidebar:
5+
order: 7
6+
---
7+
8+
import { TabItem, Tabs } from "~/components";
9+
10+
Cloudflare Browser Rendering currently uses **Chromium version 124.0.6367.257**.
11+
12+
Browser Rendering allows developers to programmatically control and interact with a headless browser instance and create automation flows for their applications and products. Once configured, the service provides access to a WebSocket endpoint that speaks the [DevTools Protocol](https://chromedevtools.github.io/devtools-protocol/). This protocol is what allows Cloudflare to instrument a Chromium instance running in the Cloudflare global network.
13+
14+
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/).
15+
16+
<Tabs syncKey="workersExamples"> <TabItem label="Puppeteer">
17+
18+
```javascript
19+
import puppeteer from "@cloudflare/puppeteer";
20+
21+
async fetch(request, env) {
22+
const browser = await puppeteer.launch(env.MYBROWSER);
23+
const version = await browser.version();
24+
console.log("Chromium version:", version);
25+
await browser.close();
26+
})().catch(console.error);
27+
```
28+
29+
</TabItem> <TabItem label="Playwright">
30+
31+
```javascript
32+
const { chromium } = require("playwright");
33+
34+
(async () => {
35+
const browser = await chromium.launch();
36+
const version = await browser.version();
37+
console.log("Chromium version:", version);
38+
await browser.close();
39+
})().catch(console.error);
40+
```
41+
42+
</TabItem> </Tabs>
43+
44+
Example output
45+
46+
```
47+
Chromium version: HeadlessChrome/123.0.6312.86
48+
```

src/content/docs/browser-rendering/workers-binding-api/index.mdx

Lines changed: 1 addition & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { DirectoryListing, TabItem, Tabs } from "~/components";
99

1010
The Workers Binding API allows you to execute advanced browser rendering scripts within [Cloudflare Workers](/workers/). It provides developers the flexibility to automate and control complex workflows and browser interactions.
1111

12-
Browser Rendering allows developers to programmatically control and interact with a headless browser instance and create automation flows for their applications and products. Once configured, the service provides access to a WebSocket endpoint that speaks the [DevTools Protocol](https://chromedevtools.github.io/devtools-protocol/). This protocol is what allows Cloudflare to instrument a Chromium instance running in the Cloudflare global network.
12+
Browser Rendering allows developers to programmatically control and interact with a headless browser instance and create automation flows for their applications and products. Once configured, the service provides access to a WebSocket endpoint that speaks the [DevTools Protocol](https://chromedevtools.github.io/devtools-protocol/). This protocol is what allows Cloudflare to instrument a [Chromium instance](/browser-rendering/platform/chromium-version/) running in the Cloudflare global network.
1313

1414
## Browser Rendering options
1515

@@ -18,43 +18,3 @@ The following options are available for browser rendering tasks:
1818
<DirectoryListing />
1919

2020
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.
21-
22-
## Chromium version
23-
24-
Cloudflare Browser Rendering currently uses **Chromium version 124.0.6367.257**.
25-
26-
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/).
27-
28-
<Tabs syncKey="workersExamples"> <TabItem label="Puppeteer">
29-
30-
```javascript
31-
const puppeteer = require("puppeteer");
32-
33-
(async () => {
34-
const browser = await puppeteer.launch();
35-
const version = await browser.version();
36-
console.log("Chromium version:", version);
37-
await browser.close();
38-
})().catch(console.error);
39-
```
40-
41-
</TabItem> <TabItem label="Playwright">
42-
43-
```javascript
44-
const { chromium } = require("playwright");
45-
46-
(async () => {
47-
const browser = await chromium.launch();
48-
const version = await browser.version();
49-
console.log("Chromium version:", version);
50-
await browser.close();
51-
})().catch(console.error);
52-
```
53-
54-
</TabItem> </Tabs>
55-
56-
Example output
57-
58-
```
59-
Chromium version: HeadlessChrome/123.0.6312.86
60-
```

0 commit comments

Comments
 (0)