On this page
TestError
Information about an error thrown during test execution.
Properties
location
Error location in the source code.
Usage
testError.location
Type
message
Error message. Set when Error (or its subclass) has been thrown.
Usage
testError.message
Type
snippet
Source code snippet with highlighted error.
Usage
testError.snippet
Type
stack
Error stack. Set when Error (or its subclass) has been thrown.
Usage
testError.stack
Type
value
The value that was thrown. Set when anything except the Error (or its subclass) has been thrown.
Usage
testError.value
Type
© 2024 Microsoft
Licensed under the Apache License, Version 2.0.
https://playwright.dev/docs/api/class-testerror