TestError
Source URL: https://playwright.dev/docs/api/class-testerror
TestError | Playwright
섹션 제목: “TestError | Playwright”Information about an error thrown during test execution.
Properties
섹션 제목: “Properties”cause
섹션 제목: “cause”Added in: v1.49 testError.cause
Error cause. Set when there is a cause for the error. Will be undefined if there is no cause or if the cause is not an instance of Error.
Usage
testError.causeType
location
섹션 제목: “location”Added in: v1.30 testError.location
Error location in the source code.
Usage
testError.locationType
message
섹션 제목: “message”Added in: v1.10 testError.message
Error message. Set when Error (or its subclass) has been thrown.
Usage
testError.messageType
snippet
섹션 제목: “snippet”Added in: v1.33 testError.snippet
Source code snippet with highlighted error.
Usage
testError.snippetType
stack
섹션 제목: “stack”Added in: v1.10 testError.stack
Error stack. Set when Error (or its subclass) has been thrown.
Usage
testError.stackType
value
섹션 제목: “value”Added in: v1.10 testError.value
The value that was thrown. Set when anything except the Error (or its subclass) has been thrown.
Usage
testError.valueType