{"id":22850211,"url":"https://github.com/siam29/selenium","last_synced_at":"2026-05-17T17:11:41.191Z","repository":{"id":266838707,"uuid":"899509224","full_name":"siam29/selenium","owner":"siam29","description":"This project uses Selenium to perform web scraping and automated testing on a sample website. It includes functionalities like extracting data, verifying HTML elements, testing image availability, and currency filtering. The project outputs results to Excel files with multiple sheets for easy analysis.","archived":false,"fork":false,"pushed_at":"2024-12-11T04:50:57.000Z","size":90,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-31T06:29:47.921Z","etag":null,"topics":["pandas","python3","selenium-python"],"latest_commit_sha":null,"homepage":"","language":"Python","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/siam29.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-06T12:15:24.000Z","updated_at":"2025-01-02T21:49:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"76f65edd-6748-495b-a158-070f6f789b3e","html_url":"https://github.com/siam29/selenium","commit_stats":null,"previous_names":["siam29/selenium"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/siam29/selenium","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siam29%2Fselenium","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siam29%2Fselenium/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siam29%2Fselenium/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siam29%2Fselenium/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/siam29","download_url":"https://codeload.github.com/siam29/selenium/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siam29%2Fselenium/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276639733,"owners_count":25678179,"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-23T02:00:09.130Z","response_time":73,"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":["pandas","python3","selenium-python"],"created_at":"2024-12-13T05:06:53.100Z","updated_at":"2025-09-23T19:52:05.717Z","avatar_url":"https://github.com/siam29.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Selenium Web Scraping and Testing Project\nThis project uses Selenium to perform web scraping and automated testing on a sample website. It includes functionalities like extracting data, verifying HTML elements, testing image availability, and currency filtering. The project outputs results to Excel files with multiple sheets for easy analysis.\n## Description\nThis project automates the testing of a vacation rental details page on the website [alojamiento.io](https://www.alojamiento.io/) to validate essential elements and functionality. The script checks for various SEO-impacting test cases such as:\n- **H1 Tag Existence**: Validates the presence of the H1 tag.\n- **HTML Tag Sequence**: Ensures that the sequence of HTML tags (H1-H6) is correct.\n- **Image Alt Attribute Validation**: Checks if the image elements have the alt attribute.\n- **URL Status Code Test**: Verifies that all URLs on the page are functional (i.e., not 404).\n- **Currency Filter**: Ensures that the property tiles' currency changes according to the selected filter.\n- **Scrape Script Data**: Collects site information and records it in an Excel file.\n## Requirements\n- **Python 3.x**: Ensure Python is installed on your machine.\n- **Libraries**: Use the following libraries for automation:\n  - `Selenium`\n  - `Pandas`\n  - `webdriver-manager`\n- **Web Browser**: Google Chrome or Firefox with the respective WebDriver.\n- **Test Site**: [https://www.alojamiento.io/](https://www.alojamiento.io/)\n\n**Clone the Repository**\n```\ngit clone https://github.com/siam29/selenium.git\n```\n**Navigate to the Project Directory**\n```\ncd selenium\n```\n**Create a Virtual Environment**\n```\npython3 -m venv myenv\n```\n\n**Activate the Virtual Environment**\n- On Mac/Linux\n```\nsource myenv/bin/activate\n```\n- On Windows\n```\nmyenv\\Scripts\\activate\n```\n**Install Require Dependencies**\n```\npip install -r requirements.txt\n```\n**Run the Project**\n```\npython main.py\n```\n## Output\n```test_results1.xlsx``` – Contains test case results. It contain 2 sheet ```Test Results``` and ```Scraped Data```.\n```Test Results``` look like this \n```\n| page_url         | testcase                    | status | comments                         |\n|------------------|-----------------------------|--------|----------------------------------|\n| https://...      | Test HTML Elements          | pass   | All elements found               |\n| https://...      | Currency Change to USD      | pass   | Updated prices: $100, $200       |\n```\n```Scraped Data``` – Contains scraped data:\n```\n| SiteURL          | CampaignID | SiteName      | Browser | CountryCode | IP           |\n|------------------|------------|---------------|---------|-------------|--------------|\n| https://...      | 12345      | Example Site  | Chrome  | US          | 192.168.0.1  |\n```\n## Connect with Me\nIf you have any questions, suggestions, or feedback, feel free to reach out to me through the following channels\n- Email: almahmudsiam15@gmail.com\n- GitHub: https://github.com/siam29\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiam29%2Fselenium","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsiam29%2Fselenium","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiam29%2Fselenium/lists"}