@11ways/specter
v0.1.3
Published
Browser wrapper
Downloads
11
Readme
Specter
Headless browser wrapper
Installation
npm install @11ways/specter
Usage
const Specter = require('@11ways/specter');
let browser = new Specter.Browser(),
tab = browser.createTab();
await tab.goto('https://stad.gent/');
let url = await tab.evaluate(function() {
let img = document.querySelector('img');
return img.src;
});