Skip to content

Latest commit

 

History

History
12 lines (9 loc) · 891 Bytes

README.md

File metadata and controls

12 lines (9 loc) · 891 Bytes

webdriverio-typescript-examples

This repo contains examples of how to use webdriverio to create page objects and tests. The tests are written in TypeScript and executed using the wdio-mocha-framework. The application under test is tourdedave's "the-internet" project which contains examples of hard to automate pages.

Dependencies

  • Node.js - Minimum version of 6 on Windows due to an issue with node fibers, 7+ on mac/linux should be fine.
  • Java -- Needed to run the selenium server
  • Chrome.

Test execution

To run the tests, clone the latest version of this repo then install the node modules using npm install. Afterwards execute npm run build then npm run test.

To run a test by itself, use ./node_modules/.bin/wdio --spec <path to test> wdio.conf.js.