Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
DepravityDemo opened this issue Nov 10, 2024 · 1 comment · Fixed by #2651
Assignees
Labels

Comments

@DepravityDemo
Copy link

DepravityDemo commented Nov 10, 2024

🚀 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.

@DepravityDemo DepravityDemo changed the title [Feature]: [Feature] [Feature]:Add Option to Hide ImplToApiMapping.wrapper_func Entries in Trace Reports for Enhanced Clarity Nov 10, 2024
@DepravityDemo DepravityDemo changed the title [Feature]:Add Option to Hide ImplToApiMapping.wrapper_func Entries in Trace Reports for Enhanced Clarity [Feature]:Request to Filter ImplToApiMapping.wrapper_func Entries in Playwright Trace Reports Nov 10, 2024
@mxschmitt
Copy link
Member

I can repro.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants