puppeteer/website/versioned_docs/version-22.8.0/browsers-api/browsers.process.waitforlineoutput.md

58 lines
515 B
Markdown
Raw Normal View History

---
sidebar_label: Process.waitForLineOutput
---
# 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&lt;string&gt;