boolean sync (SilentTime, Sensitivity, Timeout)
|
|
|
|
|
|
|
Waits for the screen to become silent.
SilentTime: The time for the screen to be silent
Sensitivity: Sensitivity from 0 - 100 ("0" = no sensitivity)
Timeout: Waiting Timeout in milliseconds if page is still not silent
Scenario: In this example we will load the CNN page on facebook. We will use the Sync command to wait for the new page to be loaded.
Parameters:
SilentTime: will be set to 2000
Sensitivity: will be set to 100
Timeout: will be set to 10000
Result: Only once the Loading wheel will disappear we will move to the next command on the script.
if(client.sync(2000, 100, 10000)){// If statement}if(client.Sync(2000, 100, 10000)){// If statement}If StrComp (client.Sync ( 2000, 100, 10000 ), "True") = 0 Then Report 'If statementElse ReportEnd Ifif(self.client.sync(2000, 100, 10000)):# If statementpassif($client->sync(2000, 100, 10000)){# If statement}