-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Description
🚀 Feature Request
Hello! Is that possible to add extra logging for PW?
Example
For example modify this to something like this
try:
result = next(iter(done)).result()
except Exception as e:
raise Error(f"An error '{e.name}' rised during method '{method}' \n" \
f"With params: {params} \n" \
f" Error message: {e.message}")
If do this error message will look like this
Motivation
In many cases, you get an error like playwright._impl._errors.TimeoutError: Timeout 30000ms exceeded.
which is not enough informative if you show only error message. Unfortunately, a trace log might be long, but in params usually contains a lot of useful info such as selector if it UI, headers for API call etc.
nplotnikov042 and dmitry-rozhd
Metadata
Metadata
Assignees
Labels
No labels