Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

shimiteer

0.0.0 • Public • Published

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.

install

npm i shimiteer

Downloadsweekly downloads

2

version

0.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar