This project automates the interaction with the Phy-X shielding simulator using Selenium. The script logs into the website, fills in required data fields from a CSV file, runs simulations, and exports the results to an Excel file.
- Prerequisites
- Installation
- Environment Variables
- Running the Script
- Project Structure
- Troubleshooting
- License
Ensure you have the following installed:
- Python 3.8 or higher
- Google Chrome browser
- Chrome WebDriver (must match your Chrome browser version)
-
Clone the repository:
git clone https://github.com/wahidcs50/Py.X-Automation-.git
-
Create a virtual environment (optional but recommended):
python -m venv .venv source .venv/bin/activate # On Windows, use .venv\Scripts\activate
-
Install dependencies:
pip install -r requirements.txt
-
Set up Chrome WebDriver:
Download the Chrome WebDriver from here and ensure it matches your Chrome version. Place the driver path in your environment file or local configuration.
Set the following variables in a .env
file located in the project root:
DRIVER_PATH=/path/to/chromedriver
DATA_PATH=/path/to/input_data.csv
PHY_USERNAME=your_email@example.com
PASSWORD=your_password