No video

What's new in Playwright v1.41 & v1.42

  Рет қаралды 7,499

Playwright

Playwright

Күн бұрын

In this video, we demo the new syntax for tags and annotations so you can have tags outside of titles and annotate skipped tests
We also tell you how you can now style your screenshots with stylePath. And finally we talk about the new experimental feature, Locator Handler to get rid of overlays that randomly appear.
Join us as we delve into this cool new feature with a live demo and helpful explanations. Don't forget to like, comment, and subscribe for more updates!
Release notes:
- playwright.dev...
Slides:
- 1drv.ms/p/s!Am...
0:00 - Welcome & Tip of the Day
01:25 - 🏷️ New Tags and Annotations
07:27 - 📷 Screenshot Styling
09:01 - ⚠️ Locator Handler
07:27 - 🧹 Summary
#playwright #playwrightdev #playwrightweb

Пікірлер: 61
@erikbrendel3217
@erikbrendel3217 2 ай бұрын
Thanks for the locator handler, works well for first-time-user-onboarding-popups :)
@WishInfinite
@WishInfinite 5 ай бұрын
Thank you, Dabbie and Dimitry, for the wonderful presentation! Your ability to address minor yet crucial issues in such an interesting manner never fails to impress. Keep up the excellent work! 😊😊 I will be creating videos on these topics for Playwright playlist on My KZfaq channel.
@n4bb12
@n4bb12 5 ай бұрын
The locator handler is perfect for cookie banners.
@sergtimosh
@sergtimosh 5 ай бұрын
And for sporadic loaders, like I have in my work application
@og4789
@og4789 5 ай бұрын
Tags annotations are great already refactored Thanks 🙏
@user-lk8jp2re5u
@user-lk8jp2re5u 4 ай бұрын
You go above and beyond with the Playwright! Love the product!
@graffhyrum
@graffhyrum 5 ай бұрын
Actually super excited to see the tag refactoring. Some TCMS have automatic behavior when test titles mutate, so having seperation of concerns with this means I can actually use the tags now! Great work.
@WarloardInPcGamer
@WarloardInPcGamer 5 ай бұрын
handling overlays looks useful. Its always a pain to handle that random popups during automation testing
@Suarez677Oficial
@Suarez677Oficial 5 ай бұрын
I love Playwright. The best automation tool !!
@on3p3301
@on3p3301 5 ай бұрын
Love those updates
@NikolayObraztsov
@NikolayObraztsov 5 ай бұрын
Screenshot styling looks interesting, any examples of before after would be nice, or some indepth examples.
@kailashpathak9184
@kailashpathak9184 5 ай бұрын
Amazing !!
@sergioccarneiro
@sergioccarneiro 5 ай бұрын
Why couldn’t the syntax be `{ tags: [“smoke”, “fast”] }` instead?
@SaraSarvi-zy1sf
@SaraSarvi-zy1sf 4 ай бұрын
Thanks for this useful video . I have question. How I can get the input tag on defultconfig file. For example, I run "npx playwright test -g @login". I need to know the selected tag ( in this case, @login) from input command inside my test. and wright some condition based on the selected tag inside the scenario. How can I do that ?
@Norfeldt
@Norfeldt 5 ай бұрын
When using the new tag it seems a bit strange to keep the prefix '@' - or is that just me? Haven't used annotations before but like the video hinted it would be of value if there was some light indication in the overview that a test contains some annotation without having to add a tag or opening the test report
@DebbieOBrien
@DebbieOBrien 5 ай бұрын
Nice feedback. Will pass it on to the team or feel free to submit on GitHub
@fra-kolpanzer
@fra-kolpanzer 5 ай бұрын
Great! 🎉 Thanks for the presentation, Playwright team! I have a noob question: are fast vs slow tags another way of saying a test is long vs short? Or is it something else? And:
@DebbieOBrien
@DebbieOBrien 5 ай бұрын
Not necessarily but maybe
@graffhyrum
@graffhyrum 5 ай бұрын
tags are just labelling text to organize or categorize your tests. Unless you add your own special logic, they won't do anything during runtime. I could see it being confusing since there is also `test.slow()` and that group of syntax which is ALSO referred to as 'tags and annotations' in the docs. Basically, `test.slow()`, `test.skip()`, `test.fixme()`, `test.only()`, and `test.fail()` are the "annotations" that change behavior, and, anything that you add in either the title or the new tag syntax is decorative/organizational.
@user-ny1et1qu5k
@user-ny1et1qu5k 4 ай бұрын
So with the tags object can I run specific tests that have a specific tag? For instance I have smoke tag for a bunch of tests and I have regression for a bunch of tests can I use this new tag object to only run tests that have a tag of smoke?
@blecomp
@blecomp 5 ай бұрын
Playwright the best!, thanks
@barkatthemoonlunatic1715
@barkatthemoonlunatic1715 5 ай бұрын
You guys need to better in naming the titles your videos. Try including what is actually new. Otherwise hard to look through your list of videos to find what we're looking for.
@miftahsiddiq1842
@miftahsiddiq1842 2 ай бұрын
is there any plan playwright can combine with vba excel like selenium vba?
@feralgoose7157
@feralgoose7157 5 ай бұрын
Thank you, great work as always. I am planning to implement allure-playwright to have trending and historical runs in CI. Will the latest report changes be supported, or will this cause issues?
@DebbieOBrien
@DebbieOBrien 5 ай бұрын
Test it out and submit a feature request if not
@webtestingui7187
@webtestingui7187 5 ай бұрын
👏 👏 👏
@user-vt9gs6lk5i
@user-vt9gs6lk5i 5 ай бұрын
Hello! Did I understood screenshot styling feature correct: let's say I need to take a screenshot of canvas object, but I want to ignore its part - so I can just draw a pink rectangle (using css) on top of canvas part which needs to be ignored?
@Playwrightdev
@Playwrightdev 5 ай бұрын
Exactly! its a more advanced screenshot({mask}) which we released in v1.20: playwright.dev/docs/release-notes#highlights-4
@ahamedabdulrahman
@ahamedabdulrahman 5 ай бұрын
Thanks for the video. Have a doubt though. We can add only one key-value pair in annotation?
@Playwrightdev
@Playwrightdev 5 ай бұрын
Tags and Annotations work with both, an array and a single entry. Happy testing!
@beardslittlecorner121
@beardslittlecorner121 5 ай бұрын
Where is Dima from?
@DebbieOBrien
@DebbieOBrien 5 ай бұрын
Playwright 🎭
@rihaskh
@rihaskh 5 ай бұрын
locator handler looks nice ... :) I have one doubt ,suppose i have 5 test spec files then do i have to write handler in all 5 test spec files ? or can i write somewhere globally ?
@Playwrightdev
@Playwrightdev 5 ай бұрын
You can also put them into beforeEach or put them into a wrapper function which you call inside every test where you need them.
@InsightsHub
@InsightsHub 4 ай бұрын
When are you planning to improve the api interceptor. Currently it’s very unreliable.
@Playwrightdev
@Playwrightdev 4 ай бұрын
Please file an issue on GitHub!
@dirtydiesel46
@dirtydiesel46 5 ай бұрын
Nice thank you team !!! Where would be the best place to leave feedback and request some improvements?
@geoffreycollins6627
@geoffreycollins6627 5 ай бұрын
github issues
@Playwrightdev
@Playwrightdev 5 ай бұрын
GitHub is what we use for feature / bug tracking: github.com/microsoft/playwright Thanks!
@artvram
@artvram 5 ай бұрын
I want a playwright hoodie
@tranthinhqnam
@tranthinhqnam 5 ай бұрын
50$
@minhnghiahuynh3911
@minhnghiahuynh3911 5 ай бұрын
How to cover the case in Playwright? I don't see in the document
@Playwrightdev
@Playwrightdev 4 ай бұрын
See here a guide on frame locators: playwright.dev/docs/api/class-framelocator If you have more questions, please file an issue on GitHub.
@sakibahmed6051
@sakibahmed6051 5 ай бұрын
sad. newest chromium version breaks my localhost test runs when signing in. Right after i sign in, my auth0 redirect gives me the "chrome-error://chromewebdata" error and the test stops.
@DebbieOBrien
@DebbieOBrien 5 ай бұрын
Please file a bug if you see something isn’t working
@Playwrightdev
@Playwrightdev 4 ай бұрын
This issue should be fixed in the latest update! Make sure to use latest Playwright.
@sakibahmed6051
@sakibahmed6051 4 ай бұрын
@@Playwrightdev thank you so much!!!
@aslushnikov
@aslushnikov 5 ай бұрын
Dima!! 🎉🎉🎉
@joshuamanlunas8862
@joshuamanlunas8862 5 ай бұрын
Wait, so if we remove our "@tag" from the description and test titles... how do we target them from the CLI, there;s nothing to grep now, unless there's a --tag argument?
@DebbieOBrien
@DebbieOBrien 5 ай бұрын
Damn. I forgot to show this in video. Grep just works see this example npx playwright test --grep @fast
@manjupansari4650
@manjupansari4650 5 ай бұрын
Testing all 3 tomorrow from India 😊 Tagging is awesome.. will like to see how overlay handling is working.. as that is definitely our use case
@Playwrightdev
@Playwrightdev 5 ай бұрын
See also here to see more information about --grep: playwright.dev/docs/test-annotations#tag-tests
@jackweaver5840
@jackweaver5840 5 ай бұрын
Please add these features to Python.
@shamshussain6838
@shamshussain6838 5 ай бұрын
Do these enhancements work in Playwright with C#?
@Playwrightdev
@Playwrightdev 5 ай бұрын
Locator Handler yes. The annotations / tags not, since we don't have an own test-runner in .NET. See also here for the .NET release-notes: playwright.dev/dotnet/docs/release-notes
@tranthinhqnam
@tranthinhqnam 5 ай бұрын
wow, it maybe a good choice in future
@kalyankumar3096
@kalyankumar3096 4 ай бұрын
playwright Version 1.42 is compatibility with @axe-core/playwright version 4.8.5?
@Playwrightdev
@Playwrightdev 4 ай бұрын
We recommend filing an issue on GitHub: github.com/microsoft/playwright
What's new in Playwright v1.40
9:56
Playwright
Рет қаралды 11 М.
What's new in Playwright 1.31
16:14
Playwright
Рет қаралды 8 М.
Schoolboy - Часть 2
00:12
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 16 МЛН
A little girl was shy at her first ballet lesson #shorts
00:35
Fabiosa Animated
Рет қаралды 20 МЛН
Joker can't swim!#joker #shorts
00:46
Untitled Joker
Рет қаралды 34 МЛН
AMD slayed the dragon - AMD Ryzen 9 9900X & 9950X
8:39
ShortCircuit
Рет қаралды 194 М.
Why You Shouldn't Nest Your Code
8:30
CodeAesthetic
Рет қаралды 2,7 МЛН
Advice for Playwrights: Simon Stephens
5:31
Paines Plough
Рет қаралды 11 М.
What's new in Playwright 1.39
18:38
Playwright
Рет қаралды 9 М.
The ONLY REASON To Unit Test
8:26
Theo - t3․gg
Рет қаралды 76 М.
🔴 Playwright Live: Playwright Community, latest release and more!
1:01:20
What's new in Playwright 1.33 & 1.34
14:05
Playwright
Рет қаралды 7 М.
What's new in Playwright v1.45: Clock API
6:23
Playwright
Рет қаралды 4,4 М.
What's new in Playwright v1.44
7:23
Playwright
Рет қаралды 6 М.
Schoolboy - Часть 2
00:12
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 16 МЛН