{"id":24397871,"url":"https://github.com/zobayerakib/selenium_practice","last_synced_at":"2026-05-01T20:31:21.664Z","repository":{"id":245932698,"uuid":"819593599","full_name":"ZobayerAkib/Selenium_Practice","owner":"ZobayerAkib","description":null,"archived":false,"fork":false,"pushed_at":"2024-06-29T21:07:20.000Z","size":380,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-27T06:41:45.798Z","etag":null,"topics":["java","junit5","locator","selenium","selenium-java","selenium-webdriver","testng","testng-framework","xpath"],"latest_commit_sha":null,"homepage":"","language":"CSS","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/ZobayerAkib.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-06-24T20:32:17.000Z","updated_at":"2024-06-29T21:09:04.000Z","dependencies_parsed_at":"2026-02-09T10:03:04.860Z","dependency_job_id":null,"html_url":"https://github.com/ZobayerAkib/Selenium_Practice","commit_stats":null,"previous_names":["zobayerakib/selenium_practice"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ZobayerAkib/Selenium_Practice","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZobayerAkib%2FSelenium_Practice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZobayerAkib%2FSelenium_Practice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZobayerAkib%2FSelenium_Practice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZobayerAkib%2FSelenium_Practice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ZobayerAkib","download_url":"https://codeload.github.com/ZobayerAkib/Selenium_Practice/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZobayerAkib%2FSelenium_Practice/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32512662,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["java","junit5","locator","selenium","selenium-java","selenium-webdriver","testng","testng-framework","xpath"],"created_at":"2025-01-19T22:49:26.473Z","updated_at":"2026-05-01T20:31:21.635Z","avatar_url":"https://github.com/ZobayerAkib.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Automated Testing \n\nThis repository contains automated tests for a web application using Selenium WebDriver with Java. The tests are designed to perform basic checks on the login functionality and shopping cart operations of the application.\n\n## Test Scenarios\n[This website](https://www.saucedemo.com/)  is used for Task 1 and Task 2.\n \n### Task 1: Login Page Check and Navigation\n\n1. **Login Page Check using ID Locator:**\n   - Locate and verify elements on the login page using ID locators.\n   \n2. **Verify Website Title:**\n   - Print the current title of the website using an ID locator.\n   - Assert that the actual title matches the expected title.\n   \n3. **Verify Current URL:**\n   - Check the current URL of the page after login.\n   - Assert that the current URL matches the expected URL.\n\n### Task 2: Shopping Cart Operations\n\n1. **Navigate to T-Shirt Product Page:**\n   - Click on the orange \"T-shirt link\" using a absolute path.\n   \n2. **Add Item to Cart:**\n   - Click on the \"Add to Cart\" button to add the item to the shopping cart using a relative path.\n   \n3. **View Shopping Cart:**\n   - Click on the shopping cart badge to view the items in the cart using an absolute path.\n   \n4. **Continue Shopping:**\n   - Click on the \"Continue shopping\" button to return to the previous page using an relative path.\n\n\n\n\n## Test Scenario: Form Submission Checks\nThis repository contains automated tests for a web application using Selenium WebDriver with Java. The tests are designed to perform various form submission checks on the application hosted at [Try Testing This](https://trytestingthis.netlify.app/). `Task 3`, `Task 4` and `Task 5` was done using that website.\n\n### Task 3: Form Submission Verification\n\n1. **Fill First Name and Last Name:**\n   - Locate and fill the First Name and Last Name fields using ID locators.\n\n2. **Check Radio Button Selection:**\n   - Verify and assert that the radio button is selected correctly using `isSelected()` method.\n   \n3. **Verify Drop Down Selection:**\n   - Locate the Drop Down element using name locator.\n   - Verify the selected option from the Drop Down using `isSelected()` method and assert.\n\n4. **Check Multiple Options:**\n   - Select multiple options from a list and verify the selections using `isSelected()` method.\n\n5. **Submit the Form:**\n   - Click on the Submit button using an absolute path.\n   \n6. **Confirmation Message:**\n   - Print a confirmation message if the form submission is successful.\n   - \n### Task 4: Form Submission Verification using TestNG\n\n- The tests are implemented using TestNG framework in the `TestNG For From Submission Page Check` folder.\n- Test cases for form submission functionalities are located in `TestNgForFormSubmissionCheck`.\n- TestNG reports are automatically generated in the `test-output` directory.\n\n### Task 5: Form Submission Verification using JUnit\n\n- The tests are implemented using JUnit framework in the `JUnit For From Submission Page Check` folder.\n- Test cases for form submission functionalities are located in `JunitPracticeForFormPage.java`.\n\n\n\n## Tools Used\n\n- **Selenium WebDriver:** Automation tool for web browsers.\n- **Java:** Programming language used for scripting.\n- **TestNG:** Framework for organizing test cases (Task 4).\n- **JUnit:** Framework for organizing test cases (Task 5).\n- **Assertions:** Used to validate expected outcomes.\n\n## Setup Instructions\n\n1. **Clone the Repository:**  https://github.com/ZobayerAkib/Selenium_Practice.git\n\n\n2. **Install Dependencies:**\n- Ensure you have Java Development Kit (JDK) installed.\n- Use Maven or Gradle for managing dependencies.\n\n3. **Configure WebDriver:**\n- Download the appropriate WebDriver executable (ChromeDriver, GeckoDriver, etc.) and place it in the `/drivers` directory.\n\n4. **Run Tests:**\n- Use Maven or Gradle to run the tests, or directly execute the test classes using your IDE.\n\n5. **Review Test Results:**\n- After running the tests, review the console output for test results and any assertions that failed.\n\n## Notes\n\n- Update the expected titles and URLs in the test scripts (`TestSeleniumOne.java` , `SeleniumAssignmentTwo.java` ,`PracticeThree.java` `TestNgForFormSubmissionCheck` and `JunitPracticeForFormPage.java`) according to your application's actual titles and URLs.\n- Ensure all paths (relative and absolute) in the test scripts are correct and match your application's structure.\n- Use appropriate annotations and assertions provided by TestNG or JUnit to structure your test cases effectively.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzobayerakib%2Fselenium_practice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzobayerakib%2Fselenium_practice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzobayerakib%2Fselenium_practice/lists"}