/vtex-login-automation

Project made with Python and Selenium to automate the process of log in to VTEX clients

Primary LanguagePython

VTEX Login Automation

This project was made to practice Python and get in touch with Selenium.

Unfortunately this version only works on Windows


Automation of the log in process using Google accounts with VTEX.

Pre-setup

Downloading Python

Go to Python website and download the latest version to your system

Make sure that while installing you check the box to include Python in the PATH

Creating environment variables:

  • Your email

    • Type win + R, it will open a small window at the left bottom corner
    • Type setx VTEX_Login <your.google.account>
    • Hit ENTER
  • Your password

    • Type win + R again
    • Type setx VTEX_Password <your.account.password>
    • Hit ENTER

Setup:

  • Cloning the Repo
        git clone https://github.com/SamuelDenani/vtex-login-automation.git
        cd vtex-login-automation
        pip install -r requirements.txt
    
  • Adding the repo to the PATH
    • Copy the path where you cloned the repo
    • Open the Windows Search by clicking on the Windows logo at the left bottom corner or by hitting the Windows Key on your keyboard
    • Type env
    • Click on Edit environment variables, it will open a new window
    • Inside that new window, click on Enviroment Variables, it will open another window
    • Look for the Path variable on the top panel and once you find it, click on it and on Edit below
    • Click on New and paste the path of the repo
    • Then just click OK OK OK

Usage:

*You can use this command from anywhere

    vtex <mystore.myvtex.com/admin/a>

Remember to replace mystore with the name of your store.