Back to Puppeteer

Process class

website/versioned_docs/version-24.40.0/browsers-api/browsers.process.md

19.2.21.5 KB
Original Source

Process class

Signature

typescript
export declare class Process

Constructors

<table><thead><tr><th>

Constructor

</th><th>

Modifiers

</th><th>

Description

</th></tr></thead> <tbody><tr><td>

<span id="_constructor_">(constructor)(opts)</span>

</td><td> </td><td>

Constructs a new instance of the Process class

</td></tr> </tbody></table>

Properties

<table><thead><tr><th>

Property

</th><th>

Modifiers

</th><th>

Type

</th><th>

Description

</th></tr></thead> <tbody><tr><td>

<span id="nodeprocess">nodeProcess</span>

</td><td>

readonly

</td><td>

childProcess.ChildProcess

</td><td> </td></tr> </tbody></table>

Methods

<table><thead><tr><th>

Method

</th><th>

Modifiers

</th><th>

Description

</th></tr></thead> <tbody><tr><td>

<span id="close">close()</span>

</td><td> </td><td> </td></tr> <tr><td>

<span id="getrecentlogs">getRecentLogs()</span>

</td><td> </td><td>

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

</td></tr> <tr><td>

<span id="hasclosed">hasClosed()</span>

</td><td> </td><td> </td></tr> <tr><td>

<span id="kill">kill()</span>

</td><td> </td><td> </td></tr> <tr><td>

<span id="waitforlineoutput">waitForLineOutput(regex, timeout)</span>

</td><td> </td><td> </td></tr> </tbody></table>