thanhtinhpas1 / Automation-With-Selenium-And-Node.js

Automated testing in Google home page.

Home Page:https://medium.com/@bmshamsnahid/automated-testing-with-selenium-webdriver-and-node-js-f99f64720352

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Automated google search operation.

Step By Step Tutorial

Run application

Clone the repository

git clone https://github.com/bmshamsnahid/Automation-With-Selenium-And-Node.js.git

Install dependencies

npm i chai@4.1.2 chai-as-promised@7.1.1 chromedriver@2.41.0 faker@4.1.0 mocha@5.2.0 mochawesome@3.0.3 selenium-webdriver@4.0.0-alpha.1 --save-dev --unsafe-perm=true --allow-root

Run test

npm test

Folder Structure

├── ...
│
├── lib                         # Helper methods
│   ├── basePage.js             # Generic functionality for tests
│   └── homePage.js             # Home page testing functionality
│
├── test                        # Test suite
│   └── homePage.test.js        # Testing in home page
│
├── utils                       # Utility files for testing
│   ├── fakeData.js             # Generating random keyword for searching
│   └── locator.js              # HTML and CSS identifier for elements to test
├── ...

License

MIT

About

Automated testing in Google home page.

https://medium.com/@bmshamsnahid/automated-testing-with-selenium-webdriver-and-node-js-f99f64720352


Languages

Language:HTML 59.5%Language:JavaScript 40.5%