playwright/docs/src/test-api/class-testerror.md

493 B

class: TestError

  • langs: js

Information about an error thrown during test execution.

property: TestError.message

  • type: <[void]|[string]>

Error message. Set when [Error] (or its subclass) has been thrown.

property: TestError.stack

  • type: <[void]|[string]>

Error stack. Set when [Error] (or its subclass) has been thrown.

property: TestError.value

  • type: <[void]|[string]>

The value that was thrown. Set when anything except the [Error] (or its subclass) has been thrown.