Skip to content

[Feature]:Request to Filter ImplToApiMapping.wrapper_func Entries in Playwright Trace Reports #2650

@DepravityDemo

Description

@DepravityDemo

🚀 Feature Request

I am using Playwright version 1.48 on Ubuntu 22 with Python synchronous API . When I enable self.page.on("console", self.handle_console) and self.page.on('response', self.handle_response), I observe that the trace report contains a lot of ImplToApiMapping.wrapper_func entries. These entries do not provide clear information and make it difficult for me to focus on the actions that really require attention. The issue seems to arise when calling json_data = response.json(). If this line is commented out, the ImplToApiMapping.wrapper_func entries do not appear. Could you provide an option to hide such information in the trace?

Image
2024-11-10_21-18-59.zip

Example

def handle_response(self, response):
try:
json_data = response.json()
url = response.url

Motivation

While using Playwright for testing on Ubuntu 22 with Python, I noticed that enabling specific event handlers results in numerous ImplToApiMapping.wrapper_func entries in the trace report. These entries lack clear information and hinder my ability to focus on essential actions. The issue appears linked to processing JSON responses, as commenting out the line json_data = response.json() prevents these entries from appearing. An option to hide such entries would greatly enhance the clarity and effectiveness of trace analysis.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions