core3-utils

@wixc3/testing on Github

Home > @wixc3/testing > locatorTimeout

locatorTimeout() function

Warning: This API is now obsolete.

use debugSafeTimeout() instead Creates a playwright locator options with scaled timeout and adjust the current test timeout accordingly

Signature:

export declare function locatorTimeout(ms?: number): {
    timeout: number;
};

Parameters

Parameter Type Description
ms number _(Optional)_

Returns:

{ timeout: number; }