API 参考类PlaywrightExceptionPlaywrightException 继承自: RuntimeException 当某些操作异常终止时,例如当 Page.evaluate() 正在运行时浏览器关闭,会抛出 PlaywrightException 异常。所有 Playwright 异常都继承自此类。