1.2.0 • Published 5 years ago

@ianwalter/webdriver-helper v1.2.0

Weekly downloads
-
License
SEE LICENSE IN LI...
Repository
github
Last release
5 years ago

@ianwalter/webdriver-helper

An AVA helper that makes a Selenium Webdriver browser available to a test

npm page BrowserStack Status

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

  1. Install dependencies with yarn.
  2. Start the Selenium Hub, Chrome, and Firefox containers with docker-compose up
  3. Run tests with yarn test.

License

Apache 2.0 with Commons Clause - See LICENSE

 

Created by Ian Walter