{"id":24986976,"url":"https://github.com/hitthecodelabs/seleniumscripts","last_synced_at":"2026-05-09T14:39:22.973Z","repository":{"id":259728032,"uuid":"879294385","full_name":"hitthecodelabs/SeleniumScripts","owner":"hitthecodelabs","description":"Python functions and scripts designed for automating web interactions using Selenium","archived":false,"fork":false,"pushed_at":"2024-10-27T14:54:54.000Z","size":4364,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-04T11:43:53.732Z","etag":null,"topics":["chromedriver","python","selenium","webdriver"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hitthecodelabs.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}},"created_at":"2024-10-27T14:32:15.000Z","updated_at":"2025-01-02T12:08:00.000Z","dependencies_parsed_at":"2024-10-27T16:41:11.452Z","dependency_job_id":"18a4b01e-fedc-4afb-bafa-1a329ab9268e","html_url":"https://github.com/hitthecodelabs/SeleniumScripts","commit_stats":null,"previous_names":["hitthecodelabs/seleniumscripts"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hitthecodelabs%2FSeleniumScripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hitthecodelabs%2FSeleniumScripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hitthecodelabs%2FSeleniumScripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hitthecodelabs%2FSeleniumScripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hitthecodelabs","download_url":"https://codeload.github.com/hitthecodelabs/SeleniumScripts/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246174532,"owners_count":20735413,"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":["chromedriver","python","selenium","webdriver"],"created_at":"2025-02-04T11:34:47.766Z","updated_at":"2026-05-09T14:39:22.799Z","avatar_url":"https://github.com/hitthecodelabs.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# SeleniumScripts\n\nA collection of Python functions and scripts designed for automating web interactions using Selenium. This repository contains reusable and modular functions for common automation tasks like clicking input fields, entering text, extracting information from pages, and sending messages or images to a Telegram channel.\n\n## Table of Contents\n\n- [Installation](#installation)\n- [Usage](#usage)\n  - [Clicking Input Fields](#clicking-input-fields)\n  - [Entering Text](#entering-text)\n  - [Interacting with Checkboxes and Buttons](#interacting-with-checkboxes-and-buttons)\n  - [Extracting Information](#extracting-information)\n  - [Sending Messages to Telegram](#sending-messages-to-telegram)\n- [Examples](#examples)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Installation\n\n1. Clone this repository:\n\n   ```bash\n   git clone https://github.com/hitthecodelabs/SeleniumScripts.git\n   cd SeleniumScripts\n   ```\n\n2. Install the required dependencies:\n\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n   Ensure you have **Selenium** and **Requests** installed. Additionally, download the appropriate WebDriver (e.g., ChromeDriver, GeckoDriver) based on your browser.\n\n## Usage\n\n### Clicking Input Fields\n\n- **`click_username_field(driver)`**: Clicks on the username input field.\n- **`click_password_field(driver)`**: Clicks on the password input field.\n\n### Entering Text\n\n- **`enter_username_text(driver, username=\"\")`**: Enters the given username into the username input field.\n- **`enter_password_text(driver, password=\"\")`**: Enters the given password into the password input field.\n\n### Interacting with Checkboxes and Buttons\n\n- **`click_remember_me_checkbox(driver)`**: Clicks the 'Remember Me' checkbox.\n- **`click_login_button(driver)`**: Clicks the 'LOGIN' button.\n- **`click_calendar_link(driver)`**: Clicks on the 'Calendar' link.\n- **`click_agenda_button(driver)`**: Clicks on the 'Agenda' button.\n\n### Extracting Information\n\n- **`extract_assignments(driver)`**: Extracts assignments with 'Due Date' information from the calendar agenda.\n- **`extract_assignments_with_dates(driver)`**: Extracts assignments along with their respective due dates and times.\n\n### Sending Messages to Telegram\n\n- **`send_message_to_telegram_channel(bot_token, channel_id, message_text)`**: Sends a text message to a Telegram channel using a bot token.\n- **`send_image_to_telegram_channel(bot_token, channel_id, image_path, caption=None)`**: Sends an image to a Telegram channel using a bot token.\n\n## Examples\n\n```python\nfrom selenium import webdriver\nfrom SeleniumScripts import click_username_field, enter_username_text, click_login_button\n\n# Set up the Selenium WebDriver\ndriver = webdriver.Chrome()\n\n# Open a website and perform actions\ndriver.get(\"https://example.com/login\")\n\n# Click on the username field and enter text\nclick_username_field(driver)\nenter_username_text(driver, \"my_username\")\n\n# Perform other actions like clicking the password field, entering text, and logging in\n# ...\nclick_login_button(driver)\n```\n\n### Sending a Telegram Message\n\n```python\nfrom SeleniumScripts import send_message_to_telegram_channel\n\n# Define your bot token and channel ID\nbot_token = \"YOUR_TELEGRAM_BOT_TOKEN\"\nchannel_id = \"@your_channel_id\"\n\n# Send a message\nsend_message_to_telegram_channel(bot_token, channel_id, \"Hello from SeleniumScripts!\")\n```\n\n## Contributing\n\nContributions are welcome! Feel free to open an issue or submit a pull request for bug fixes, improvements, or new features.\n\n## License\n\nThis repository is licensed under the MIT License. See the [LICENSE](LICENSE) file for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhitthecodelabs%2Fseleniumscripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhitthecodelabs%2Fseleniumscripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhitthecodelabs%2Fseleniumscripts/lists"}