mirror of
https://github.com/hanzoai/puppeteer.git
synced 2026-09-24 17:02:14 +00:00
Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Nikolay Vitkov <[email protected]>
618 B
618 B
sidebar_label
| sidebar_label |
|---|
| Locator.setTimeout |
Locator.setTimeout() method
Creates a new locator instance by cloning the current locator and setting the total timeout for the locator actions.
Pass 0 to disable timeout.
Signature
class Locator {
setTimeout(timeout: number): Locator<T>;
}
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
timeout |
number |
Returns:
Locator<T>
Default value:
Page.getDefaultTimeout()