Playwright's new version has some major changes, we're going to take a look at that.
In this video, the presenter discusses the new features available in version 1.14 of Playwright. The video begins with an introduction to Playwright and its capabilities. The presenter then highlights two major updates in this version: the strict mode and the new locator API.
The strict mode allows users to restrict the execution of a test case if multiple elements with the same locator are found. This can be useful in scenarios where unique elements need to be identified and failure of a test is preferred over ambiguity.
The new locator API is recommended over the element handle API, as it provides a simpler syntax for locating elements on a page. The presenter mentions that they will cover this topic in more detail in future videos.
The video also mentions the new selector strategies for finding React and View.js components easily. The presenter plans to demonstrate this feature in an upcoming video.
Another feature mentioned is the "nth" selector, which allows users to find elements based on their position in a list. This feature can be combined with other selector strategies available in Playwright.
The video then transitions to discussing updates in the Playwright test runner. Many new assertion methods are available, which the presenter plans to cover in separate videos. The video also showcases the "serial" mode, which allows for sequential execution of tests within a describe block and skips subsequent tests if a failure occurs.
The presenter also introduces the "test.step" feature, which allows for dividing a test case into multiple blocks, improving readability and traceability.
Lastly, the video mentions the three supported browser versions in Playwright 1.14: Chromium 94, Firefox 91, and WebKit 15.0.
The presenter concludes by thanking viewers for watching and encourages them to subscribe to the channel for future updates.
Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email email@example.com.