I am using the Playwright library to create a program that executes a navigation in a web application by interacting in different ways/actions, with the browser interface. The main purpose of my project is to monitor and gather information about the execution time of these actions.
The only output I receive after an execution of my program is the trace that is saved using the same Playwright library (I'm also logging at the beginning and the end of the execution of a certain group of actions, but the precision is not enough).
In this trace the actions are named after the action type (click, fill, typing...) and the action argument (the locator, for example, the name of a button), this is not a problem when the argument is simple and understandable. My problem is that sometimes the locator, or simply the argument of the action, is not human redable (for example, "textarea[name='textarea-test']").
Is it possible to "label" or rename the action name thay will be saved in the trace.trace file so it can be easily understood, without having to edit the file to change the names?