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.

Check email from terminal

Check email from terminal

Now that our script is ready, we can go ahead and package the same into an executable and run the same with just a click of a button. So the first step is to prepare our script. We'll go ahead and rename the same to check email like this because the proper name will just be used for the executable as well and then we can set the headless mode as true so that the ui does not pop up when we start our application and we can go ahead and remove that as well because by default headless is true and then if we'd like we can change the print statements as well that is i can just increase the number of dashes i can add in a cologne after the sender name like this of course you can customize this to your liking now when you're done preparing the script we can go ahead and move on to the next step that is setting up playwright globally in our system now this is necessary because our executable will run outside of our virtual environment that's why we need to do the same so hop on to a normal…

Contents