Spec-Zone.ru › Playwright

TestInfoError

Information about an error thrown during test execution.

Properties​

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

testInfoError.cause

Type

  • TestInfoError

errorContext​

Additional context for the error, such as the aria snapshot of the receiver at the time of an expect(...) matcher failure.

Usage

testInfoError.errorContext

Type

  • string

message​

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

Usage

testInfoError.message

Type

  • string

stack​

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

Usage

testInfoError.stack

Type

  • string

value​

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

Usage

testInfoError.value

Type

  • string

© 2026 Microsoft
Licensed under the Apache License, Version 2.0.
https://playwright.dev/docs/api/class-testinfoerror

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API