Skip to content

Commit 9aa7109

Browse files
committed
How to use rebrowser-puppeteer with puppeteer-extra
1 parent fd39d83 commit 9aa7109

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,18 @@ Only JS version of Playwright is supported. Python is coming soon.
162162
| 1.47.1<br/><small>and below</small> | 2024-09-13 | 129 ||
163163

164164

165+
## How to use `rebrowser-puppeteer` with `puppeteer-extra`?
166+
Use `addExtra` method, here is the example:
167+
```
168+
// before
169+
import puppeteer from 'puppeteer-extra'
170+
171+
// after
172+
import { addExtra } from 'puppeteer-extra'
173+
import rebrowserPuppeteer from 'rebrowser-puppeteer'
174+
const puppeteer = addExtra(rebrowserPuppeteer)
175+
```
176+
165177
## Follow the project
166178
We're currently developing more patches to improve web automation transparency, which will be released in this repo soon. Please support the project by clicking ⭐️ star or watch button.
167179

0 commit comments

Comments
 (0)