вторник, 10 июня 2014 г.

Object Synchronization

Object synchronization points make scripts more resilient and robust. You need to consider two factors with object synchronization: waiting for control options and dealing with static delay.
When waiting for control options, you insert synchronization points by waiting for the object to be ready and enabled before trying to perform any critical action, such asWaitForControlReady(),WaitForControlExist().
The second approach is static delay. While you should use WaitForControl options as much as possible, in some unavoidable cases you must hard-code wait/sleep and use the Playback.Wait() API instead of theThread.Sleep() API.

Комментариев нет:

Отправить комментарий