v1.19.0
Version 1.19
Locator Updates
Locator now supports a has
option that makes sure it contains another locator inside:
page.locator("article", new Page.LocatorOptions().setHas(page.locator(".highlight"))).click();
The snippet above will select article that has highlight in it and will press the button in it.
Read more in locator documentation
Other Updates
- New
method: Locator.page
method: Page.screenshot
andmethod: Locator.screenshot
now automatically hides blinking caret- Playwright Codegen now generates locators and frame locators
Browser Versions
- Chromium 100.0.4863.0
- Mozilla Firefox 96.0.1
- WebKit 15.4
This version was also tested against the following stable channels:
- Google Chrome 98
- Microsoft Edge 98