0.0.0 • Published 6 years ago
shimiteer v0.0.0
Important! This library is not actually implemented. It's just a detailed idea. Implementation will arrive shortly. Come work on it with us!
Shimiteer
Puppeteer API shim for other browsers using WebdriverIO
Install
yarn add shimiteer
Usage
Instead of importing puppeteer
, you can import shimiteer
, and for the most
part you will be able to use it as a drop-in replacement.
Before:
const puppeteer = require('puppeteer');
puppeteer.launch().then(async browser => {
const page = await browser.newPage();
await page.goto('https://www.google.com');
// other actions...
await browser.close();
});
After:
const shimiteer = require('shimiteer');
shimiteer.launch().then(async browser => {
const page = await browser.newPage();
await page.goto('https://www.google.com');
// other actions...
await browser.close();
});
Using WebdriverIO we attempt to implement as much of the puppeteer API as possible. There will be some things missing, but for many use cases it should be good enough.
0.0.0
6 years ago