You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- New mode `retain-on-first-failure` for [`property: TestOptions.trace`]. In this mode, trace is recorded for the first run of each test, but not for retires. When test run fails, the trace file is retained, otherwise it is removed.
25
+
26
+
```js title=playwright.config.ts
27
+
import { defineConfig } from'@playwright/test';
28
+
29
+
exportdefaultdefineConfig({
30
+
use: {
31
+
trace:'retain-on-first-failure',
32
+
},
33
+
});
34
+
```
35
+
36
+
- New property [`property: TestInfo.tags`] exposes test tags during test execution.
37
+
38
+
```js
39
+
test('example', async ({ page }) => {
40
+
console.log(test.info().tags);
41
+
});
42
+
```
43
+
44
+
- New method [`method: Locator.contentFrame`] converts a [Locator] object to a [FrameLocator]. This can be useful when you have a [Locator] object obtained somewhere, and later on would like to interact with the content inside the frame.
- New method [`method: FrameLocator.owner`] converts a [FrameLocator] object to a [Locator]. This can be useful when you have a [FrameLocator] object obtained somewhere, and later on would like to interact with the `iframe` element.
0 commit comments