SyncElements (SilentTime, Timeout)
|
|
|
|
|
|
|
Waits for the screen to become silent.
SilentTime - The period of time for the screen to be silent.
Timeout - Waiting Timeout in milliseconds.
In this example, I will wait the screen to come silent after the loading symbol goes off from the page and the movie tiles are loaded. I need the rest of the script to wait until the new page is loaded. I need the page to be still for 3000 milliseconds within the timeout specified.
Parameters:
SilentTime - The time for the screen to be silent – will be set to 3000
Timeout 10000
if(client.syncElements(3000, 10000)){// If statement}if(client.SyncElements(3000, 10000)){// If statement}If StrComp (client.SyncElements ( 3000, 10000 ), "True") = 0 Then Report 'If statementElse ReportEnd Ifif(self.client.syncElements(3000, 10000)):# If statementpassif($client->syncElements(3000, 10000)){If statement}