rebrowser-puppeteer-core
📣 This is the original puppeteer-core
patched with rebrowser-patches
.
🕵️ The ultimate goal is to pass all automation detection tests presented in rebrowser-bot-detector
.
🪄 It's designed to be a drop-in replacement for the original puppeteer-core
without changing your codebase. Each version of this repo matches the original repo.
🐛 Please report any issues in the rebrowser-patches
repo.
Puppeteer
Puppeteer is a Node.js library which provides a high-level API to control
Chrome or Firefox over the
DevTools Protocol or WebDriver BiDi.
Puppeteer runs in the headless (no visible UI) by default
but can be configured to run in a visible ("headful") browser.
Installation
npm i puppeteer
npm i puppeteer-core
Example
import puppeteer from 'puppeteer';
const browser = await puppeteer.launch();
const page = await browser.newPage();
await page.goto('https://developer.chrome.com/');
await page.setViewport({width: 1080, height: 1024});
await page.locator('.devsite-search-field').fill('automate beyond recorder');
await page.locator('.devsite-result-item-link').click();
const textSelector = await page
.locator('text/Customize and automate')
.waitHandle();
const fullTitle = await textSelector?.evaluate(el => el.textContent);
console.log('The title of this blog post is "%s".', fullTitle);
await browser.close();