@ianwalter/webdriver-helper

1.2.0 • Public • Published

@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

Package Sidebar

Install

npm i @ianwalter/webdriver-helper

Weekly Downloads

8

Version

1.2.0

License

SEE LICENSE IN LICENSE

Unpacked Size

7.31 kB

Total Files

5

Last publish

Collaborators

  • ianwalter