/web-automation-wdio-typescript

Web automation demo with typescript and webdriverio v6

Primary LanguageTypeScriptMIT LicenseMIT

Description

This is a web browser automation demo which uses a fairly standard page object model and runs some browser tests against the wonderful The Internet site using Typescript and Webdriverio v6. There is a Javascript only version in a similarly named repo here - web-automation-wdio-javascript

Test examples cover such issues as:

  • A/B Testing
  • Basic Authentication
  • Broken Images
  • Challenging DOMs
  • Checkbox Manipulation
  • Drag & Drop Operations
  • Dropdown Lists
  • Dynamic Content
  • Dynamic Controls
  • Dynamic Loading
  • Exit Intent
  • File Upload
  • Login Page

Requirements

  • Use nodeJS LTS v12.18.1 or above
  • Google Chrome

Setup

  • use nvm (or equivalent) to set the nodeJS version
  • Clone repository
  • run npm install in root directory

Execution

Execution on your local machine only (for now).

  • npm run test to compile the typescript and run the code
  • npm run test:report to do the above and generate an (allure) html report

Known Issues

TODO

  • Basic Auth - check if wdio v6 can handle basic auth
  • Dynamic controls - selector syntax
  • Send info to log file instead of polluting stdout