Skip to content

[Feature]: Adding Steps to Trace via Playwright API #33047

@Snooz82

Description

@Snooz82

🚀 Feature Request

hey y'all,

I am one of the maintainers of the Robot Framework Playwright integration.
I would like to start and stop steps in Tracing via Playwright API. (without test)
Image

I mean these steps that are added in Playwright test with test.step

This is a very cool Unique Selling Point of Playwright compared to others like cypress, etc..

We are not using Playwright.test, because the actual test runner is Robot Framework. But we would like to add the test steps, which are calling Playwright actions, executed in Robot Framework to the tracing. That would massively help analysing the logs on longer system level tests.
How do other Playwright implementation do that?

i think this would be an extremely helpful feature for other language implementation like Playwright Python as well.

Thank you!

Kind regards from the thousands of Playwright users from the Robot Framework Community.

Cheers
René

Example

all language implementation could offer steps to their testing frameworks.

one huge disadvantage for higher level tests of i.e. cypress is, that you do see only all these click, fill and so on in the logs.
For system tests or end2end tests this is really bad.
Playwright Test has a huge advantage there.

Motivation

we want to show the Robot Framework keywords in Trace viewers so that users know where it failed not only in robot logs but in trace.

Metadata

Metadata

Assignees

No one assigned

    Labels

    open-to-a-pull-requestThe feature request looks good, we are open to reviewing a PR

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions