Introducing Playwright

  Рет қаралды 2,942

Rainer Hahnekamp

Rainer Hahnekamp

Күн бұрын

This video serves as an introduction to Playwright, a high-performance End-to-End (E2E) testing framework developed by Microsoft known for producing reliable tests. As of the end of 2023, it has nearly caught up with Cypress in terms of download numbers.
I'll walk you through the basics of Playwright, such as selecting and interacting with elements, and how to perform assertions. The video also covers how Playwright behaves in Continuous Integration (CI) environments and explores available reporting tools.
Additionally, I share some valuable tips and tricks, including the implementation of Page Object Models, Test Fixtures, and Code Generators to simplify your testing workflow.
0:00 Welcome
1:00 Introduction
7:57 A First Test
29:46 VSCode Integration
33:38 Trace Viewer
37:51 Test Fixtures & Page Objects
46:18 Test Recorder
48:12 Summary & Farewell

Пікірлер: 26
@hille-hausonfire4338
@hille-hausonfire4338 8 ай бұрын
Stoked that you were invited to India!! "...And thus, Austria´s finest turned into the world´s greatest..." Well deserved :)
@RainerHahnekamp
@RainerHahnekamp 8 ай бұрын
Thanks a lot. I already wanted to go there this year. Didn't work out. Now it is in February next year. I'm really looking forward to it.
@vutruong4164
@vutruong4164 8 ай бұрын
just what I needed, and timely so! Thank you kind sir!
@RainerHahnekamp
@RainerHahnekamp 8 ай бұрын
Hi, thanks, yeah nice to hear. I've been working with Playwright for more than two years now and thought it is about time to publish a proper video about it.
@EnHacore1
@EnHacore1 8 ай бұрын
Very good introduction, thank you so much, it looks great. Being able to test against 3 browsers in parallel is great
@RainerHahnekamp
@RainerHahnekamp 8 ай бұрын
Thanks, yeah Playwright is extremely good when it comes to performance
@matheusjordan6031
@matheusjordan6031 8 ай бұрын
Nice tool for testing, thanks for sharing this work tool. I'm soo grateful for this video.
@RainerHahnekamp
@RainerHahnekamp 8 ай бұрын
Thanks Matheus, good to hear
@sawmkcsaw
@sawmkcsaw 8 ай бұрын
thx for introduction, very structured and clear 👍🖖
@RainerHahnekamp
@RainerHahnekamp 8 ай бұрын
You are very welcome!
@MaheshJoshi_wellington
@MaheshJoshi_wellington 5 ай бұрын
Amazing video this framework is game changer in automation lots to learn !
@RainerHahnekamp
@RainerHahnekamp 5 ай бұрын
Yup, Playwright is wonderful and good for the competition
@toromanow
@toromanow Ай бұрын
Is playwright what you'd recommend for automated testing of an Angular app?
@dmso
@dmso 7 ай бұрын
more or less ... another great tutorial. thanks!
@RainerHahnekamp
@RainerHahnekamp 7 ай бұрын
Thanks Torben. "more or less...": Which E2E do you use?
@dmso
@dmso 7 ай бұрын
previous work was all about Cypress (that is why we took the cypress course @ angularArchitects with you, what really helped), at current work we just switched to playwright, which turns out to be fantastic (compared to test cafe)
@dmso
@dmso 7 ай бұрын
I was just referring that you use the term "more or less" very often in your video :)
@RainerHahnekamp
@RainerHahnekamp 7 ай бұрын
​@@dmso Ah, I see. Yeah, one of the new "Neujahresvorsätze": Geting rid of all those filler words.
@aram5642
@aram5642 8 ай бұрын
Hi, would you consider an episode about testing libraries (testing-library, ngmocks, etc)? Maybe some pros and cons?
@RainerHahnekamp
@RainerHahnekamp 8 ай бұрын
Hello again, puh, at the moment my plans for the next videos are quite crammed. Maybe next year, but not to soon. Sorry.
@LarsRyeJeppesen
@LarsRyeJeppesen 8 ай бұрын
Looks pretty awesome , not gonna lie. PlayWright vs Cypress ?
@RainerHahnekamp
@RainerHahnekamp 8 ай бұрын
This is for you: kzbin.info/www/bejne/g4One6KdnL6Uo9E
@toromanow
@toromanow Ай бұрын
I'm experiencing the following issues: 1) When I uncomment the webserver section in playwright.config.ts, then playwright reports "No tests" 2) In my test *.spec.ts file, await page.goto('') results in an error with no explanation. Thoughts?
@RainerHahnekamp
@RainerHahnekamp Ай бұрын
You typically get that message, if you have an invalid configuration file. Check that your commenting also wasn't applied to some things (parenthesis for example). If you uncomment it, and Playwright works, it is definitely an invalid config. You can post the contents of it here as well.
@toromanow
@toromanow Ай бұрын
@@RainerHahnekamp Actually, found those issues to be specific to Windows. All works fine on Ubuntu.
@RainerHahnekamp
@RainerHahnekamp Ай бұрын
@@toromanow It shouldn't make a difference...
Angular's Change Detection
27:31
Rainer Hahnekamp
Рет қаралды 6 М.
Angular Testing in 2023: Past, Present, and Future
26:21
Rainer Hahnekamp
Рет қаралды 11 М.
Alex hid in the closet #shorts
00:14
Mihdens
Рет қаралды 16 МЛН
Best KFC Homemade For My Son #cooking #shorts
00:58
BANKII
Рет қаралды 69 МЛН
Cypress and Playwright: A Comparison
1:09:14
Rainer Hahnekamp
Рет қаралды 7 М.
Senior Angular Developer Interview (theory)
41:57
WeCoded
Рет қаралды 13 М.
How do I test and mock Standalone Components
12:29
Rainer Hahnekamp
Рет қаралды 2,5 М.
OpenAPI with Spring & Angular
50:40
Rainer Hahnekamp
Рет қаралды 1,7 М.
NgRx Signal Store Trilogy, Part 1: Why, When, and How?
51:04
Rainer Hahnekamp
Рет қаралды 13 М.
What's new in Playwright v1.40
9:56
Playwright
Рет қаралды 11 М.
Reactive Contexts
12:10
Rainer Hahnekamp
Рет қаралды 2,5 М.
Samsung laughing on iPhone #techbyakram
0:12
Tech by Akram
Рет қаралды 6 МЛН
iPhone 15 Pro в реальной жизни
24:07
HUDAKOV
Рет қаралды 481 М.
iPhone 16 с инновационным аккумулятором
0:45
ÉЖИ АКСЁНОВ
Рет қаралды 10 МЛН