From the course: Playwright Python and Pytest for Web Automation Testing: Master Modern Web Testing with Playwright and Pytest in Python

Unlock this course with a free trial

Join today to access over 25,200 courses taught by industry experts.

Project setup

Project setup

In this lesson, we'll go ahead and set up our project from scratch. That is here. I have an empty directory. That is, I have just emptied the Opera one. But you can go ahead and create a new directory and open the same. Our first task is to create a virtual environment. the terminal we will go ahead and create a new virtual environment using the win module and naming our virtual environment venv as well pretty creative so when the virtual environment has been created we can activate the same like this and now we can go ahead and install the required packages. That is playwright, pytest and the plugin for the same. To do that we can just install pytest hyphen playwright like this. It will go ahead and install all of the packages for us. That is playwright, pytest and the plugin itself. And of course let's upgrade pip as well so that we don't get the upgrade message great now we have installed everything we require now we can go ahead and create a new test directory to hold our test…

Contents