Skip to content

Latest commit

 

History

History
57 lines (38 loc) · 1.63 KB

File metadata and controls

57 lines (38 loc) · 1.63 KB

Selenium Web Automation for Phy-X Shielding Simulation

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.

Table of Contents

Prerequisites

Ensure you have the following installed:

  • Python 3.8 or higher
  • Google Chrome browser
  • Chrome WebDriver (must match your Chrome browser version)

Installation

  1. Clone the repository:

    git clone https://github.com/wahidcs50/Py.X-Automation-.git
  2. Create a virtual environment (optional but recommended):

    python -m venv .venv
    source .venv/bin/activate   # On Windows, use .venv\Scripts\activate
  3. Install dependencies:

    pip install -r requirements.txt
  4. 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.

Environment Variables

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