playwright/docs/src/test-api/class-testinfoerror.md
2024-09-05 21:36:51 -07:00

673 B

class: TestInfoError

  • since: v1.10
  • langs: js

Information about an error thrown during test execution.

property: TestInfoError.matcherResult

  • since: v1.48
  • type: ?<[TestInfoErrorMatcherResult]>

Matcher result details.

property: TestInfoError.message

  • since: v1.10
  • type: ?<[string]>

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

property: TestInfoError.stack

  • since: v1.10
  • type: ?<[string]>

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

property: TestInfoError.value

  • since: v1.10
  • type: ?<[string]>

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