{"id":23286360,"url":"https://github.com/aifia105/automation-test-scripts","last_synced_at":"2026-04-27T22:31:24.380Z","repository":{"id":268689647,"uuid":"905169482","full_name":"aifia105/Automation-Test-Scripts","owner":"aifia105","description":"This repository contains a Selenium automation script for learning purposes. The script demonstrates how to test the functionality of the Sauce Demo. It is intended for educational and practice use to understand automation testing concepts.","archived":false,"fork":false,"pushed_at":"2024-12-19T15:58:16.000Z","size":9187,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-12T21:36:31.067Z","etag":null,"topics":["assert","javascript","selenium","selenium-webdriver"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aifia105.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-18T09:48:47.000Z","updated_at":"2024-12-19T15:58:20.000Z","dependencies_parsed_at":"2024-12-18T10:38:49.259Z","dependency_job_id":"b07365cf-1d47-4896-80b0-190de4cfe584","html_url":"https://github.com/aifia105/Automation-Test-Scripts","commit_stats":null,"previous_names":["aifia105/automation-test-script"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aifia105%2FAutomation-Test-Scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aifia105%2FAutomation-Test-Scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aifia105%2FAutomation-Test-Scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aifia105%2FAutomation-Test-Scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aifia105","download_url":"https://codeload.github.com/aifia105/Automation-Test-Scripts/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247503135,"owners_count":20949383,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["assert","javascript","selenium","selenium-webdriver"],"created_at":"2024-12-20T02:11:35.123Z","updated_at":"2026-04-27T22:31:24.351Z","avatar_url":"https://github.com/aifia105.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Selenium Automation Test Script\r\n\r\nThis repository contains a Selenium automation script for learning purposes. The script demonstrates how to test the functionality of the [Sauce Demo](https://www.saucedemo.com/) website. It is intended for educational and practice use to understand automation testing concepts.\r\n\r\n## Features\r\n\r\n- Automates login functionality.\r\n- Adds multiple items to the shopping cart.\r\n- Proceeds to the checkout page.\r\n- Completes the checkout process.\r\n- Verifies the order completion.\r\n\r\n## Prerequisites\r\n\r\nEnsure the following tools and libraries are installed:\r\n\r\n- [Node.js](https://nodejs.org/) (v16 or later recommended)\r\n- [npm](https://www.npmjs.com/) (comes with Node.js)\r\n\r\n## Installation\r\n\r\n1. Clone this repository:\r\n\r\n   ```bash\r\n   git clone https://github.com/aifia105/Automation-Test-Scripts.git\r\n   ```\r\n\r\n2. Navigate to the project directory:\r\n\r\n   ```bash\r\n   cd Automation-Test-Scripts/test\r\n   ```\r\n\r\n3. Install the required dependencies:\r\n\r\n   ```bash\r\n   npm install selenium-webdriver assert\r\n   ```\r\n\r\n## Usage\r\n\r\n1. Run the script:\r\n\r\n   ```bash\r\n   node index.js\r\n   ```\r\n\r\n2. The script will:\r\n   - Navigate to the Sauce Demo website.\r\n   - Log in using predefined credentials (`standard_user` / `secret_sauce`).\r\n   - Add all items to the cart.\r\n   - Proceed through the checkout process.\r\n   - Verify that the order has been completed successfully.\r\n\r\n## Script Details\r\n\r\n- **File Name:** `index.js`\r\n- **Browser:** Microsoft Edge (Can be modified to other browsers like Chrome or Firefox by changing `Browser.EDGE` to `Browser.CHROME` or `Browser.FIREFOX`).\r\n- **Delays:** Includes delays using `driver.sleep()` to mimic user interaction.\r\n\r\n## Dependencies\r\n\r\n- `selenium-webdriver`: For browser automation.\r\n- `assert`: For validating test results.\r\n\r\n## Example Output\r\n\r\nIf the script runs successfully, you will see the following message in the console:\r\n\r\n```text\r\nTest passed: Order completed successfully.\r\n```\r\n\r\nIf an error occurs, it will be logged to the console.\r\n\r\n## Contribution\r\n\r\nFeel free to fork this repository and submit pull requests for any improvements or additional features.\r\n\r\n## License\r\n\r\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\r\n\r\n## Author\r\n\r\n[aifia105](https://github.com/aifia105)\r\n\r\n---\r\n\r\n### Note:\r\nThis script is for learning purposes only and uses a demo website provided by Sauce Labs. Please do not use this for malicious purposes.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faifia105%2Fautomation-test-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faifia105%2Fautomation-test-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faifia105%2Fautomation-test-scripts/lists"}