all AI news
Playwright with Python - A Quick Guide
June 14, 2024, 9:45 p.m. | Luciano Renzi
DEV Community dev.to
In this guide, we'll see how to set up a basic Playwright project using Python and Pytest. Then, how to implement the Page Object Pattern and a few other things.
This guide requires a basic knowledge of Python.
Preconditions
The packages required are:
playwright
pytest-playwright
pytest-xdist
The folder structure
The base folder structure for our project:
/pages
/tests
conftest.py
requirements.txt
Installation
We add the required packages to the requirements.txt file:
requirements.txt
playwright>=1.44.0
pytest-playwright>=0.5.0
pytest-xdist>=3.6.1
Then we run the following command: …
basic e2e guide knowledge object page pattern playwright project pytest python set testing things
More from dev.to / DEV Community
Jobs in AI, ML, Big Data
Senior Data Engineer
@ Displate | Warsaw
Senior Algorithms Engineer (Image Processing)
@ KLA | USA-MI-Ann Arbor-KLA
Principal Software Development Engineer
@ Yahoo | US - United States of America
Data Domain Architect, Vice President
@ JPMorgan Chase & Co. | Columbus, OH, United States
Senior, Data Scientist, Sam's Personalization
@ Cox Enterprises | (USA) TX MCKINNEY 04906 SAM'S CLUB
Software Engineering Specialist
@ GE HealthCare | Bengaluru HEALTHCARE (JFWTC) IN