View Source Improve this doc

timeoutsAsyncScript

Set the amount of time, in milliseconds, that asynchronous scripts executed by /session/:sessionId/execute_async are permitted to run before they are aborted and a |Timeout| error is returned to the client.

This command is deprecated and will be removed soon. Make sure you don’t use it in your automation/test scripts anymore to avoid errors. Please use the timeouts command instead.

Usage

1
browser.timeoutsAsyncScript(ms);

Parameters

Param Type Details
ms Number The amount of time, in milliseconds, that time-limited commands are permitted to run.