Skip to content

Boilerplate to Automate the testing with scripts. Easy setup with Python, pip, Git, and ChromeDriver. Contribute and collaborate!

Notifications You must be signed in to change notification settings

Code-District-Team/selenium-template

Repository files navigation

Project Name

Overview

This repository is designed to facilitate the onboarding process for users, particularly focusing on freelance onboarding. It includes various scripts and configurations to automate and manage user profiles, business information, and trade details.

Features

  • Automates the onboarding process for freelance users.
  • Manages user profiles and business information.
  • Supports integration with social media platforms like Instagram and Snapchat.
  • Provides a structured approach to handle business trade information.

Folder Structure

  • config.py: Contains configuration settings such as base URLs and browser preferences.
  • Drivers/: Includes necessary drivers for browser automation.
  • Pages/: Contains modules for different page interactions, including user profile onboarding and business profile management.
  • Resources/: Holds data classes for user and business information.
  • Tests/: Contains test scripts for validating the onboarding process.
  • Utils/: Includes utility classes such as locators for web elements.

Prerequisites

  • Python 3.x
  • pip (Python package manager)
  • Git
  • A web browser (e.g., Chrome) and its corresponding WebDriver (e.g., ChromeDriver)

Setup Instructions

1. Install Python and pip

Windows

  1. Download the Python installer from the official website.
  2. Run the installer and ensure you check the box "Add Python to PATH".
  3. Verify the installation by opening a command prompt and typing:
    python --version
    pip --version

macOS

  1. Open Terminal.
  2. Install Homebrew if not already installed:
    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  3. Install Python:
    brew install python
  4. Verify the installation:
    python3 --version
    pip3 --version

Linux

  1. Open Terminal.
  2. Update package lists:
    sudo apt update
  3. Install Python and pip:
    sudo apt install python3 python3-pip
  4. Verify the installation:
    python3 --version
    pip3 --version

2. Install Git

Windows

  1. Download the Git installer from the official website.
  2. Run the installer and follow the setup instructions.
  3. Verify the installation by opening a command prompt and typing:
    git --version

macOS

  1. Open Terminal.
  2. Install Git using Homebrew:
    brew install git
  3. Verify the installation:
    git --version

Linux

  1. Open Terminal.
  2. Update package lists:
    sudo apt update
  3. Install Git:
    sudo apt install git
  4. Verify the installation:
    git --version

3. Install ChromeDriver

  1. Check your Chrome version by navigating to chrome://settings/help in your browser.
  2. Download the corresponding ChromeDriver from the ChromeDriver download page.
  3. Extract the downloaded file and place the chromedriver executable in the Drivers/ directory of the project.
  4. Ensure chromedriver is executable and added to your system's PATH.

4. Clone the Repository

git clone <repository-url>
cd <repository-directory>

5. Install Project Dependencies

Run the following command to install the required packages:

pip install -r requirements.txt

6. Run Tests

Execute the test scripts to verify the setup:

pytest Tests/onboarding/freelanceonboarding_test.py

Additional Information

  • License: This project is licensed under the MIT License.
  • Contributing: Contributions are welcome. Please fork the repository and submit a pull request.
  • Contact: For any queries, please contact [your-email@example.com].

Notes

  • Ensure that the WebDriver is executable and properly configured in your system's PATH.
  • Modify the config.py file to change the base URL or browser settings as needed.

About

Boilerplate to Automate the testing with scripts. Easy setup with Python, pip, Git, and ChromeDriver. Contribute and collaborate!

Topics

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages