Skip to content

MaBlaGit/BDDSeleniumWithPython

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BDD Selenium with Python (WIP)

Description

This repo contains small implementation of e2e tests written in Python, Selenium and Gherkin syntax. Tests were written for http://automationpractice.com/

How to setup local environment and run tests (Linux / Mac users)

Project was written in Python 3.7.6 but any version of Python 3.x should be fine.

As a default browser Chrome was used so make sure that Chrome on your local machine is installed.

Chromedriver is required to run Selenium tests in Chrome browser. Depending of the browser version, download appropriate driver from https://chromedriver.chromium.org/downloads

1 Clone repo

2 Go to the root folder of the project and create virtual environment - python3 -m venv $(pwd)/venv (more info here: https://docs.python.org/3.7/library/venv.html)

3 Activate virtual environment - source ./venv/bin/activate

4 Install requred dependencies - make deps

5 Add chromedriver to environmental variables - export CHROMEDRIVER=absolute/path/to/chromedriver

6 Run tests by command - behave

About

This repo contains small implementation of e2e tests written in Python, Selenium and Gherkin syntax. Tests were written for http://automationpractice.com/

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published