-
Notifications
You must be signed in to change notification settings - Fork 6.9k
[BRAPI]chromium version details #22013
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: production
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
--- | ||
pcx_content_type: reference | ||
title: Chromium version | ||
sidebar: | ||
order: 7 | ||
--- | ||
|
||
import { TabItem, Tabs } from "~/components"; | ||
|
||
Cloudflare Browser Rendering currently uses **Chromium version 124.0.6367.257**. | ||
|
||
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. | ||
|
||
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/). | ||
|
||
<Tabs syncKey="workersExamples"> <TabItem label="Puppeteer"> | ||
|
||
```javascript | ||
import puppeteer from "@cloudflare/puppeteer"; | ||
|
||
async fetch(request, env) { | ||
const browser = await puppeteer.launch(env.MYBROWSER); | ||
const version = await browser.version(); | ||
console.log("Chromium version:", version); | ||
await browser.close(); | ||
})().catch(console.error); | ||
``` | ||
|
||
</TabItem> <TabItem label="Playwright"> | ||
|
||
```javascript | ||
const { chromium } = require("playwright"); | ||
|
||
(async () => { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Still not sure if I understand, but why do we not have this example in a worker? |
||
const browser = await chromium.launch(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we should pass the |
||
const version = await browser.version(); | ||
console.log("Chromium version:", version); | ||
await browser.close(); | ||
})().catch(console.error); | ||
``` | ||
|
||
</TabItem> </Tabs> | ||
|
||
Example output | ||
|
||
``` | ||
Chromium version: HeadlessChrome/123.0.6312.86 | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should be
@cloudflare/playwright
please see the examples here for reference: https://developers.cloudflare.com/browser-rendering/platform/playwright/