Playwright 1.42 is out! 🏷️ New Tags and Annotations 📷 Screenshot Styling ⚠️ Locator Handler Watch the release video: https://lnkd.in/eVuEq4Fb
What's new in Playwright v1.41 & v1.42
https://www.youtube.com/
Thank you Playwright Embracing the future of test automation, Playwright continues to innovate and offer new features that enhance the efficiency and effectiveness of our testing processes. As we continue to explore the possibilities offered by Playwright, it's clear that this tool is poised to revolutionize the way we approach test automation. By leveraging these new features and best practices, we can deliver more reliable, efficient, and maintainable tests that meet the evolving needs of our software development projects.
The new tagging is great, much cleaner test titles. Locator handler is nice too we use it to close the cookie banner as it’s not in all test envs so this handles it nicely
Good to have these in playwright features 👍 appreciate your hard work in helping testing community.. Keep doing the good work 😊 thanks Playwright team👍
Glen Osborne = have a look Glen, the tags are exactly what we need.
Gonna try 1 and 3 tomorrow IST in our framework.. Thanks for bringing these enhancements Playwright
Perfect timing, I was just in need of that locator handler. 🙂
Wow it's really great!!! But I think, we need to grow the Playwrite community on every single platform, to involve all testers.
page.addLocatorHandler() is awesome feature.
Senior QA Automation Engineer at Endava
6moThe key points covered in the video are: New Tags and Annotations: Tags are used for filtering tests. Previously, tags were specified inside the test title. The new syntax is to define tags in a separate object after the title. Annotations are used to add additional information to a test. They can include a type and a description with a link, for example to a related Github issue. Annotations are now placed outside of the test body. Screenshot Styling: This feature allows you to control what gets captured in a screenshot during a test. You can specify a CSS file to style the screenshot, for example to hide unwanted elements like iframes or canvas. Locator Handlers: This is an experimental feature to deal with unpredictable overlays that appear on a page. It allows you to define a handler function that is called when Playwright encounters a specific locator text on the page. The handler function can then perform actions to get rid of the overlay, such as clicking a close button. The speaker recommends updating to the latest version of Playwright to get these new features and bug fixes. They also asked for feedback on the experimental locator handler feature.