Back to Puppeteer

Process.waitForLineOutput() method

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

19.2.2463 B
Original Source

Process.waitForLineOutput() method

Signature

typescript
class Process {
  waitForLineOutput(regex: RegExp, timeout?: number): Promise<string>;
}

Parameters

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

Parameter

</th><th>

Type

</th><th>

Description

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

regex

</td><td>

RegExp

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

timeout

</td><td>

number

</td><td>

(Optional)

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

Returns:

Promise<string>