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
- Use nodeJS LTS v12.18.1 or above
- Google Chrome
- use nvm (or equivalent) to set the nodeJS version
- Clone repository
- run
npm install
in root directory
Execution on your local machine only (for now).
npm run test
to compile the typescript and run the codenpm run test:report
to do the above and generate an (allure) html report
- Not sure that wdio can handle basic auth
- https://github.com/ccharnkij/webdriverio/tree/bug_fix_allure_unknown_status
- webdriverio/webdriverio#5040 The allure reporter is showing beforeEach & afterEach hooks as passed (?) and subsequent tests as Unknown.
- webdriverio-boneyard/wdio-allure-reporter#128 Issue with allure marking test hooks as passed tests
- Basic Auth - check if wdio v6 can handle basic auth
- Dynamic controls - selector syntax
- Send info to log file instead of polluting stdout