playwright icon indicating copy to clipboard operation
playwright copied to clipboard

[Feature] Can you provide a trace viewer NPM package

Open xflihaibo opened this issue 4 years ago • 3 comments

Hello

Can you provide a Trace Viewer NPM package,

We are working on an open source test GUI application Etest x wants to add this function

https://onepiece-smile.github.io/docs/#/./application/ete

thank you

xflihaibo avatar Oct 29 '21 16:10 xflihaibo

@xflihaibo have you find any solution? I am looking for ways to do something like:

import { openTrace } from "@playwright/trace";

const myTrace = await openTrace("./path-to-trace.zip");
const actions = await myTrace.listActions();
const lastSnapshotDom = await actions.at(-1)?.getDom();

I haven’t found any public API to do read traces in Node.js so far.

kachkaev avatar Apr 15 '22 19:04 kachkaev

Seeing some positive changes in the repo structure: trace-viewer is a separate package now 👀

It’d be great to see a variant of it published on NPM! 🙏

kachkaev avatar May 29 '22 21:05 kachkaev

I'm coming here after reading https://github.com/microsoft/playwright/issues/16367#issuecomment-1209892073. Given we haven't seen much activity/requests here, it's unlikely we'll be resolving this soon. However, would you be open to contributing a PR? If so—before starting any work—I can raise with the team and see if it's something Playwright would include. Thanks!

rwoll avatar Aug 09 '22 21:08 rwoll

Why was this issue closed?

Thank you for your involvement. This issue was closed due to limited engagement (upvotes/activity), lack of recent activity, and insufficient actionability. To maintain a manageable database, we prioritize issues based on these factors.

If you disagree with this closure, please open a new issue and reference this one. More support or clarity on its necessity may prompt a review. Your understanding and cooperation are appreciated.

pavelfeldman avatar Jun 30 '23 18:06 pavelfeldman