Skip to content

nirtal85/Selenium-Python-Example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Selenium Python Example

Python application

Articles written about this project

Project Setup

  • Install scoop
  • Install allure commandline by running the following command:
scoop install allure
  • Clone the project
  • Navigate to the project directory
  • Install virtualenv:
py -m pip install --user virtualenv
  • Create a virtual environment:
py -m venv env
  • Activate the virtual environment:
.\env\Scripts\activate
  • Install project dependencies:
poetry install

Running Tests

pytest --browser <firefox/chrome_headless>

When no browser was selected then chrome will be used.

  • Run according to tags:
pytest -m <tag_name> --browser <firefox/chrome_headless>

Viewing Test Results

  • View allure results locally:
allure serve allure-results

View Help And Custom CLI Options

pytest --help

Sort imports

isort .

format code

black .

About

Selenium Python example project with pytest and Allure report

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published

Contributors 6

Languages