This repository contains Selenium-based automation scripts for browser task automation on Python.org, such as search functionalities and download operations.
- selenium/
- tests/
test_python_org_search.py: Test script for search functionalitytest_python_org_download.py: Test script for download link validation
- scripts/
Remote_Webdriver.py: WebDriver setup for local/remote executionpython_org_search.py: Script for search operations
README.md: Documentation filerequirements.txt: Project dependencies
- tests/
- Python Scripts (.py): Core automation logic and test cases.
- requirements.txt: Lists project dependencies for quick setup.
- README.md: Documentation for project setup, usage, and contributions.
Ensure the following are installed:
- Python 3.x: Download Python
- Selenium: Install using pip:
pip install selenium
- WebDriver: Download the appropriate WebDriver for your browser (e.g., ChromeDriver for Chrome) and add it to your system's PATH.
-
Clone the Repository
git clone https://github.com/taohidkhan22/selenium.git cd selenium -
Install Dependencies
pip install -r requirements.txt
-
Configure WebDriver
- For remote execution, update
Remote_Webdriver.pywith your remote WebDriver server configuration. - For local execution, ensure the WebDriver executable is accessible in your system's PATH.
- For remote execution, update
-
Test Search Functionality
python tests/test_python_org_search.py
-
Test Download Links
python tests/test_python_org_download.py
Contributions are welcome! Follow these steps to contribute:
- Fork the Repository: Click the 'Fork' button on GitHub.
- Create a New Branch
git checkout -b feature/your-feature-name
- Commit Your Changes
git commit -m "Description of your changes" - Push to Your Fork
git push origin feature/your-feature-name
- Submit a Pull Request: From your branch to the main repository.
- Selenium for browser automation.
- Python.org for providing a platform to demonstrate these scripts.