pear3
v1.1.2
Published
Undetectable Chrome automation with a fully automated Chromium using extension APIs. π
Maintainers
Readme
π PearSystem
A Node.js-based automation framework that simplifies web automation, working with its own Chromium-based browser and extension.
β‘οΈ Usage
const Pear = require("pear3")
async function main() {
const browser = await Pear({
viewport: { width: 1280, height: 800 },
headless: false
});
const page = await browser.newPage();
await page.goto("https://google.com");
await page.directType('textarea', 'Hello Pear!');
await page.keypress('Enter');
}
main()π¦ Installation
npm install pear3π Features
- Automatic Chromium installation and launch
- Fast communication via WebSocket
- Simulate keyboard and mouse events
- Wait for and interact with dynamic content
- File upload, screenshot capture, fetch content and URL
- Comprehensive API:
goto,click,type,scroll,waitForSelector,uploadFile,getAttribute,getText,screenshot, and more
π§© API
goto(url)β Navigate to pageclick(selector)β Click elementtype(selector, text)β Type into elementscroll(selector, {x, y})β Scroll on pagewaitForSelector(selector, options)β Wait for elementuploadFile(selector, filePath)β Upload filegetAttribute(selector, attr)β Get attributegetText(selector)β Get element textscreenshot()β Take screenshot
π¨βπ» Contribution
You can open pull requests and issues. All feedback is welcome!
π License
MIT
