void sleep(time)
|
|
|
|
|
Pause the script for a specify time in milliseconds.
Time: The time to sleep in milliseconds
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"
client.sleep(5000);client.Sleep(5000);client.Sleep 5000self.client.sleep(5000)$client->sleep(1000);