You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Browsers have individual error messages, creating different kind of error classes is outside of the scope for Playwright. (we'd need to create hundreds for each browser)
We recommend matching them via a str as you proposed as a workaround.
Version
1.43.0
Steps to reproduce
Example steps (replace with your own):
Expected behavior
Raise an exception type that can be handled in an except block similar to TimeoutError
Actual behavior
Raises a generic exception of type:
playwright._impl._errors.Error
Error('net::ERR_PROXY_CONNECTION_FAILED at http://...')
Additional context
The Error type raised and the object format would require me to string match for "net::ERR_PROXY_CONNECTION_FAILED" in the message string.
Is there a more elegant way to do this? Maybe I am missing something but could not find anything on Google or Github about this.
Environment
The text was updated successfully, but these errors were encountered: