puppeteer/docs/browsers-api/browsers.process.waitforlineoutput.md

58 lines
515 B
Markdown
Raw Permalink Normal View History

2023-04-06 12:50:22 +00:00
---
sidebar_label: Process.waitForLineOutput
---
# Process.waitForLineOutput() method
#### Signature:
```typescript
class Process {
waitForLineOutput(regex: RegExp, timeout?: number): Promise<string>;
}
```
## Parameters
<table><thead><tr><th>
2023-04-06 12:50:22 +00:00
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>
2023-04-06 12:50:22 +00:00
**Returns:**
Promise&lt;string&gt;