The 1to50 Puzzle Automation Project is designed to automate the process of solving the 1to50 puzzle game using Selenium with Python. This project demonstrates how to use web automation techniques to interact with and solve a web-based puzzle game by replicating human actions in an efficient and accurate manner.
- Python 3.x: Ensure that Python 3.x is installed on your system.
- Chrome Browser: The Chrome browser is required for running the automation script.
- ChromeDriver: The WebDriver that interacts with Chrome.
-
Install Python: Download and install Python from python.org.
-
Set Up a Virtual Environment (Optional but recommended):
python -m venv venv
Activate the virtual environment:
- On Windows:
venv\Scripts\activate
- On macOS/Linux:
source venv/bin/activate
-
Install Dependencies:
Create a requirements.txt file with the following content:
selenium
Install dependencies:
pip install -r requirements.txt
-
Download and Configure ChromeDriver:
- Download ChromeDriver from chromedriver.chromium.org.
- Ensure that the version of ChromeDriver matches your Chrome browser version.
- Place chromedriver in a directory included in your system's PATH or specify the path in the
main.py
file.
- Open a Terminal or Command Prompt.
- Navigate to the Project Directory:
cd path/to/project
- Run the Script:
The script will open Chrome, interact with the 1to50 puzzle game, and attempt to solve it.
python main.py
- The browser will automatically open, and you will see the puzzle being solved in real-time.
- The final result will be displayed in the terminal or saved to a log file, depending on the script configuration.