Playwright Crash Course with PyTest

preview_player
Показать описание
In this video Andrew shows how you can write tests using Playwight with Pytest. It will get you started with everything you need to know to get up and running with Playwright using PyTest. Topics covered include basic setup creating a new test project, how to locate items with selectors, how playwright handles delays, adding text to inputs, all the actions playwright does automatically for you that you don't need to code around and some more specialized test cases.

This video assumes Python is already installed. It does not cover Python basics. The samples should be easily readable even if you do not know how to code. They can also be easily transferred to JavaScript, Java or C# because Playwright currently is supported by those bindings.

Mahesh Joshi is awesome, hes my latest subscriber. You can be awesome too subscribe!

Get 2 FREE Audio Books from Audible

0:00​ Intro
0:25​ Playwright Pytests Setup
2:35​ Deeper Dive Sample Test
3:25​ Simple Click Test
6:44​ CSS and Xpath Selectors
8:50​ How Playwright Handles Delays
10:45​ Advanced Pytest Setup With The Pytest Ini
12:38​ Testing Adding Text Into Fields
15:11​ Handling Scrolling in Tests
16:05​ Sample App Login/Logout
18:57​ Non-Breaking Space Example
20:30​ Dynamic Progress Bar Test

My Favorite Books on Coding, Devops, and Leadership

Gear Used
Intel Core i5-10600KF - 8GB Memory - NVIDIA GeForce GTX 1660 SUPER - 1TB HDD + 240GB SSD

Davinci Resolve - Editing
StreamLabs OBS - Screen Capture

Рекомендации по теме
Комментарии
Автор

Looks like the option `--headful` has been replaced by `--headed` in the v0.1.0 release on 2021/04/01

jamieczuy
Автор

really cool upload Lethcode. I shattered the thumbs up on your video. Continue to keep up the high-quality work.

KeyserTheRedBeard
Автор

Thanks for creating playwright videos using with python

parthipanp
Автор

Really good demo. The more I see and use playwright the more I like

marklane
Автор

ok.... following step-by-step, getting "collected 0 items, no test ran in..." - although these test is running, the browser is being opened etc.. - even after adding '_test' in the file name. Googled everything, but can't find any solution. It happens in both VSCode and PyCharm. Any ideas?

_manasikara
Автор

Which are the prerequisits for playwright-python installation beacuse I am not able to install it

edgarpacheco
Автор

Thanks for this. How do you approach testing pages that require authentication without necessarily logging in before_each test. I want to know if we can share page/browser context in a real application using playwright.

jatto_abdul
Автор

hey thank you very much, can we record the audio of the test please?

dragon
Автор

Can we run playwright pytest code on browserstack

qaone
Автор

What shortcut did you use to block comment?

TriottT
join shbcf.ru