Skip to main content

SeeTest Client - Sleep

info

Please note that this tool is classified as a Legacy tool. We recommend transitioning to our updated solutions to maintain optimal performance and security in your workflows. For more information on this matter, please reach out to technical support .

void sleep(time)

Description

Pause the script for a specify time in milliseconds.

Parameters

  • Time: The time to sleep in milliseconds

Usage

Scenario: We will use the 'sleep' command to wait for a Facebook application to load the page after clicking the CNN option on the search menu. 

Parameters:

  • Time: The time to sleep in milliseconds – will be set to "5000"

Code Examples

Java Example

client.sleep(5000);

C# Example Expand source

client.Sleep(5000);

VBScript Example Expand source

client.Sleep 5000

Python Example Expand source

self.client.sleep(5000)

Perl Example Expand source

$client->sleep(1000);