-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
🚀 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?
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.
