{"id":30820905,"url":"https://github.com/rohitgit0808/facebook-automation","last_synced_at":"2025-09-06T10:11:23.454Z","repository":{"id":310764857,"uuid":"1040541130","full_name":"RohitGit0808/Facebook-Automation","owner":"RohitGit0808","description":"This project is a Selenium TestNG automation framework designed to automate the Facebook signup process. Built using Java, it integrates Apache POI for data-driven testing and ExtentReports for detailed test reporting. ","archived":false,"fork":false,"pushed_at":"2025-08-20T03:14:13.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-20T05:33:52.654Z","etag":null,"topics":["apachepoi-library","css","html5","java","javascript","selenium","testng-framework"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RohitGit0808.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2025-08-19T06:18:38.000Z","updated_at":"2025-08-20T03:14:16.000Z","dependencies_parsed_at":"2025-08-20T05:34:16.975Z","dependency_job_id":"41352238-17d0-4928-afaa-0d0d21c2e8b9","html_url":"https://github.com/RohitGit0808/Facebook-Automation","commit_stats":null,"previous_names":["rohitgit0808/facebook-automation"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/RohitGit0808/Facebook-Automation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RohitGit0808%2FFacebook-Automation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RohitGit0808%2FFacebook-Automation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RohitGit0808%2FFacebook-Automation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RohitGit0808%2FFacebook-Automation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RohitGit0808","download_url":"https://codeload.github.com/RohitGit0808/Facebook-Automation/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RohitGit0808%2FFacebook-Automation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273887986,"owners_count":25185790,"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","status":"online","status_checked_at":"2025-09-06T02:00:13.247Z","response_time":2576,"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":["apachepoi-library","css","html5","java","javascript","selenium","testng-framework"],"created_at":"2025-09-06T10:03:51.798Z","updated_at":"2025-09-06T10:11:23.438Z","avatar_url":"https://github.com/RohitGit0808.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"📘 Facebook Signup Automation – Select DOB from Dropdown\n\n📌 Problem Statement\n\nAutomate the Facebook Signup form to validate Date of Birth (DOB)\n selection using different methods from Selenium’s Select class and perform end-to-end form interaction\n  with data-driven testing.\n\n---\n\n🎯 Objectives\n\nAutomate form interactions on Facebook’s signup page\n\nSelect Day, Month, and Year using:\nselectByVisibleText() → for Day\nselectByIndex() → for Month\nselectByValue() → for Year\n\nFill form fields with data from an Excel file\n\nValidate error messages for:\nMissing password\nInvalid mobile number\n\nCapture screenshots and generate detailed reports\n\n---\n\n💡 Technologies Used\n\nJava 11\n\nSelenium WebDriver 4.34.0\n\nTestNG 7.8.0\n\nApache POI 5.4.1 (for Excel data)\n\nExtentReports 5.0.9 (for reporting)\n\nMaven\n\nWebDriverManager 6.2.0\n\nEclipse IDE\n\n\n---\n\n🧾 Test Workflow Overview\n\n1. Launch the browser based on the configuration\n\n\n2. Navigate to Facebook.com\n\n\n3. Click “Create New Account”\n\n\n4. Fill in First Name, Last Name, and Mobile Number using data from Excel\n\n\n5. Leave the Password field blank to validate the password error message\n\n\n6. Select Date of Birth (DOB):\n\nDay: selected by visible text\nMonth: selected by index\nYear: selected by value\n\n\n\n7. Choose Gender based on Excel input\n\n\n8. Submit the form\n\n\n9. Validate displayed error messages for:\n\nPassword\n\nMobile number\n\n\n\n10. Print the error messages to the console\n\n\n11. Close the browser\n\n\n\n\n---\n\n🧪 Test Case Highlights\n\ntestFacebookSignup\n\nVerifies that the Facebook signup form can be filled using test data\nEnsures dropdowns are selected using different methods of Selenium’s Select class\nValidates error handling for incomplete input fields\nSupports data-driven testing with multiple datasets\n\n\n\n---\n\n▶️ How to Run the Tests\n\nUsing Eclipse\nImport the project\nRight-click on testng.xml\nSelect Run As → TestNG Suite\n\n\nUsing Command Line\n\nOpen terminal in the project directory\nRun: mvn clean test\n\n\n\n---\n\n📸 Test Artifacts\n\nScreenshots for both success and failure scenarios\nHTML reports using ExtentReports\nConsole logs and structured logging using Log4j2\nTestNG and JUnit-style reports in output folder\n\n\n\n---\n\n🛠️ Troubleshooting\n\nIssue Solution\n\nBrowser not launching Check driver setup in config.properties\nExcel data not loading Ensure correct file path and sheet name\nLocators not working UI might have changed — update element locators\nTimeout errors Adjust wait times in configuration\nTestNG not detected Ensure the TestNG plugin is installed in Eclipse\n\n\n\n---\n\n📌 Key Features\n\nPage Object Model (POM) for clean structure\nExcel-driven testing for flexibility and scalability\nMultiple dropdown handling techniques\nDetailed reporting with ExtentReports\nError validation and logging\nReusable utility classes for screenshots, Excel reading, waits, and reporting\nCross-browser support with WebDriverManager\n\u003cimg width=\"1920\" height=\"800\" alt=\"mainPage_04-08-2025_15-26-26\" src=\"https://github.com/user-attachments/assets/861fcf19-fb89-40da-9fca-4aed727a5762\" /\u003e\n\n\u003cimg width=\"1908\" height=\"824\" alt=\"ErrorMessages_04-08-2025_11-46-11\" src=\"https://github.com/user-attachments/assets/24df6415-628c-4c50-8608-e30213e1915d\" /\u003e\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frohitgit0808%2Ffacebook-automation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frohitgit0808%2Ffacebook-automation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frohitgit0808%2Ffacebook-automation/lists"}