Licence
SEE LICENSE IN LICENSE
Version
1.2.0
Deps
2
Size
7 kB
Vulns
1
Weekly
0
@ianwalter/webdriver-helper
An AVA helper that makes a Selenium Webdriver browser available to a test
About
Under the hood, webdriver-helper uses WebdriverIO.
Usage
import webdriverHelper from '@ianwalter/webdriver-helper'
const withBrowser = webdriverHelper() // Pass in WebdriverIO config here.
test('browser', withBrowser, async (t, browser) => {
await browser.url('http://example.com')
t.is(await browser.getTitle(), 'Example Domain')
})
Development setup
- Install dependencies with
yarn. - Start the Selenium Hub, Chrome, and Firefox containers with
docker-compose up - Run tests with
yarn test.
License
Apache 2.0 with Commons Clause - See LICENSE
Created by Ian Walter