GitXplorerGitXplorer
f

testcafe-browser-provider-webdriverio

public
7 stars
4 forks
6 issues

Commits

List of commits on branch master.
Unverified
6351dad8b4236ac9ccef82f7dcdd05a2c88fe11f

Merge branch 'master' of github.com:fnlctrl/testcafe-browser-provider-webdriverio

ffnlctrl committed 5 years ago
Unverified
fdfb8e92528381a4c2fa9d05cf689f511b7dab41

default to 127.0.0.1 for REMOTE_HOST (fix #6)

ffnlctrl committed 5 years ago
Unverified
297523c3a256c0bf4f3af49fb9d92c202d08c59a

fix deleteSession not awaited (fix #7)

ffnlctrl committed 5 years ago
Unverified
e432cfad21c5c1805ce3f39044fdba0291e02855

Bump lodash.merge from 4.6.1 to 4.6.2 (#4)

ddependabot[bot] committed 6 years ago
Unverified
1f6ad1c0316d5acb723476a3bf02cff5646e3117

fix selenium hub compatibility

ffnlctrl committed 6 years ago
Unverified
2268e95665c0e1029397f108ad061b4ddfa50dd4

trim HOST_NAME to work around windows cmd issue

ffnlctrl committed 6 years ago

README

The README file for this repository.

testcafe-browser-provider-webdriverio

This is the webdriverio browser provider plugin for TestCafe. It uses the latest version of webdriverio to connect to Selenium/Appium server.

Install

npm install -D https://github.com/fnlctrl/testcafe-browser-provider-webdriverio.git

Prerequisites

A selenium compatible server (Selenium, Selenoid, Zalenium, Appium, etc.) up and running.

Also note that this plugin requires node>=7.6 with native async/await support

Usage

If you run tests from the command line, use the browser alias when specifying browsers. The '-c 2' parameter will split the tests up and run them across two browsers concurrently. Omit this if it is not needed.

testcafe -c 2 webdriverio:chrome 'path/to/test/file.js'

When you use API, pass the alias to the browsers() method:

testCafe
    .createRunner()
    .src('path/to/test/file.js')
    .browsers('webdriverio:chrome')
    .concurrency(2)
    .run();

Specifying the Browser/Platform/Device

The browser version and platform can be specified along with the browser name alias in the format:

webdriverio:browserName[@version][:platform][:device]

For example:

  • webdriverio:chrome
  • webdriverio:chrome@52.0
  • webdriverio:chrome@52.0:linux

When using with Appium server, device name must be specified:

  • webdriverio:chrome:android:my-device-name

for android devices, device names can be found with adb devices

Configuration

Use the following optional environment variable to set additional configuration options:

  • REMOTE_HOST - (optional) the hostname to the remote server. Default: 'localhost'.

  • REMOTE_PORT - (optional) the port to the remote server. Default: '4444'.

  • ENABLE_VNC - (optional) use ENABLE_VNC=true to add enableVNC: true in capabilities option for webdriverio. Default: false.