Skip to content

[Bug]: getAttribute steps don't appear in the trace anymore since 1.53 #36539

@Germandrummer92

Description

@Germandrummer92

Version

1.53.2

Steps to reproduce

  1. run test (but anything with getAttribute will work)
import {expect, test} from "@playwright/test";

test.describe("try mui X", () => {
    test.only("should be able to get attribute", async ({ page }) => {
        await page.goto("https://mui.com/x/react-date-pickers/");

        let something = page.getByLabel("Outbound").nth(1);
        const value = await something.getAttribute("class");

        expect(value).not.toBeNull();
    });
});

with trace enabled
2. open trace

Expected behavior

Trace has "getAttribute" step visible.

in 1.52:

Image

trace:

trace.zip

Actual behavior

No "getAttribute" step is visible:

in 1.53.2:
Image

trace:

trace.zip

Additional context

No response

Environment

System:
    OS: macOS 15.5
    CPU: (10) arm64 Apple M1 Pro
    Memory: 118.30 MB / 32.00 GB
  Binaries:
    Node: 22.11.0 - ~/.nvm/versions/node/v22.11.0/bin/node
    npm: 10.9.0 - ~/.nvm/versions/node/v22.11.0/bin/npm
    pnpm: 9.15.9 - ~/.nvm/versions/node/v22.11.0/bin/pnpm
  Languages:
    Bash: 3.2.57 - /bin/bash
  npmPackages:
    @playwright/test: 1.53.2 => 1.53.2

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions