-
This repo contains example code for the following demo website:
-
WebdriverIO is used as web automation framework
-
This repo showcases how to run the tests on
- Chrome browser on local machine
- Chrome browser on LambdaTest cloud grid
- Firefox browser on local machine
- Microsoft Edge browser on local machine
-
This repo covers example to run tests in parallel across different browsers
-
GitHub Actions has been setup for this project, which runs the tests as soon as code is pushed
- Performing browser navigation
- Ticking and Unticking checkboxes
- Performing double click action on a WebElement
- Selecting values using single and multi-select dropdown boxes.
- Handling JavaScript Alerts covering the following:
- Getting Text from alert,
- Accept Alert
- Dismiss Alert
- Enter text and Confirm alert
- Working with HTML tables - getting value from rows and columns
- Fetch records from rows and columns in table
- Printing the data from the table using For Loop
- Searching a record from the table and verifying it
- Sort the table records on a particular column and verify the column values
- Performing Mouse hover over a WebElement
- Handling multiple windows
- Ticking and Unticking Radio buttons
- Performing Right click action
- Typing values in the textbox
- Capturing Screenshot of the web page
-
Clone the repository in your local machine by running the following command:
git clone git@github.com:mfaisalkhatri/web-automation-wdio.git
-
Install the dependencies by running the following command:
npm install
-
To run the test on local machine use the following command:
npm run test_local
-
To run the test on LambdaTest cloud grid
- Make sure to add the LambdaTest Username and accesskey in the environment variable
- Checkout the
lambdatest.conf.js
file for the configuration details
To run the tests use the following command:
npm run test_cloud
- Discuss your queries by writing to me @
mohammadfaisalkhatri@gmail.com
OR ping me on any of the social media sites using the below link: