Skip to content

This is a test automation framework designed using WebdriverIO to demonstrate different assertions

Notifications You must be signed in to change notification settings

codewithmmak/webdriverio-assertion-demo

Repository files navigation


WebdriverIO Assertions Demo Setup Guide


Features of this framework

Getting started

Pre-requisites

  • Download and install Node.js
  • Download and install any Text Editor like Visual Code/Sublime/Brackets

Setup Visual Code - optional

  • Install GitLens Extension from the Marketplace: GitLens — Git supercharged by GitKraken https://marketplace.visualstudio.com/items?itemName=eamodio.gitlens
  • Install Material Icon Theme Extension from the Marketplace: Material Icon Theme by Philipp Kief https://marketplace.visualstudio.com/items?itemName=PKief.material-icon-theme
  • Go to Visual Code Preference > Setting and search formatOnSave and enable/ON it.

Setup Scripts

  • Clone the repository into a folder
  • Go to Project root directory and install Dependency: npm install
  • All the dependencies from package.json would be installed in node_modules folder.

How to Run Test Locally

  • Go to the Project root directory and run command: npm run wdio

How to Run Single Spec Locally

  • Go to the Project root directory and run command: npm run wdio wdio.conf.js --spec ./test/specs/to-have-url.e2e.js

How to Run Test on LambdaTest Cloud

  • Go to Project root directory and run command: npm run lambdatest

Terminal Test Result

Terminal Test Result

LambdaTest Cloud Results

LambdaTest Cloud Results

LambdaTest Cloud Results Expanded View

About

This is a test automation framework designed using WebdriverIO to demonstrate different assertions

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published