This project is a basic setup for using Selenium to automate testing on the website Test Automation Practice.
selenium-project
├── src
│ ├── main.py # Entry point for the Selenium project
│ └── tests
│ └── test_example.py # Test cases for Selenium automation
├── requirements.txt # Dependencies for the project
└── README.md # Project documentation
To run this project, you need to have Python installed along with the following dependencies:
- Selenium
You can install the required dependencies using the following command:
pip install -r requirements.txt
- Clone the repository or download the project files.
- Navigate to the project directory.
- Run the main script to initialize the WebDriver and navigate to the specified URL:
python src/main.py
To execute the test cases, run the following command:
pytest src/tests/test_example.py
This project is open-source and available under the MIT License.