Skip to content

andreagrandi/playwright-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

playwright-demo

Demo usage of playwright and pytest-bdd. I found a tutorial on these two libraries, but the code was difficult to read (shown with images instead of text) so I rewrote the example in a way that was easy to read, download and try locally. In addition to the existing test case, I also wrote a similar test case for a different website, to practice and learn better about elements selectors.

Installation

pip install -r requirements.txt
playwright install

Running tests

pytest --html=report.html

Features and Scenarios

This demo project contains the following features and scenarios:

References