跳到正文
本页尚未翻译成中文,以下为英文原文。 查看英文版

Error ​

Added in: v1.11

Extends: Exception

  • extends: [Exception]

Error is raised whenever certain operations are terminated abnormally, e.g. browser closes while page.evaluate() is running. All Playwright exceptions inherit from this class.

Properties ​

error.message ​

Added in: v1.11

Message of the error.

Type

  • str

error.name ​

Added in: v1.11

Name of the error which got thrown inside the browser. Optional.

Type

  • str

error.stack ​

Added in: v1.11

Stack of the error which got thrown inside the browser. Optional.

Type

  • str

基于 Apache 2.0 许可证发布。