Default browser provider. Opens the default browser on your machine.
const Default = require('airtap-default')
const provider = new Default()
// Get a list of desired browsers (there's just 1 here)
const wanted = [{ name: 'default' }]
const manifests = await provider.manifests(wanted)
// Instantiate a browser
const target = { url: 'http://localhost:3000' }
const browser = provider.browser(manifests[0], target)
await browser.open()
With Airtap
providers:
- airtap-default
browsers:
- name: default
Constructor. Returns an instance of browser-provider
.
With npm do:
npm install airtap-default
MIT © 2020-present Airtap contributors