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()