Skip to main content
Version: 24.38.0

Process 类

🌐 Process class

语法

🌐 Signature

export declare class Process

构造函数

🌐 Constructors

构造函数

🌐 Constructor

修饰符

🌐 Modifiers

描述

🌐 Description

(constructor)(opts)

构造 Process 类的新实例

🌐 Constructs a new instance of the Process class

属性

🌐 Properties

属性

🌐 Property

修饰符

🌐 Modifiers

类型

🌐 Type

描述

🌐 Description

nodeProcess

readonly

childProcess.ChildProcess

方法

🌐 Methods

方法

🌐 Method

修饰符

🌐 Modifiers

描述

🌐 Description

close()
getRecentLogs()

获取浏览器触发的最新日志(stderr + stdout)。

🌐 Get recent logs (stderr + stdout) emitted by the browser.

hasClosed()
kill()
waitForLineOutput(regex, timeout)