It is preferable to use the waitfor task to test whether the Selenium server has successfully started, rather than pausing for a fixed time.
代码更可取的地方是使用waitfor任务来测试Selenium服务器是否已成功启动,而不是暂停一段固定的时间。
The 'waitfor' operator allows QA engineer to synchronize operation of test script with desirable state of components of Application Under Test.
QA工程师可以通过“'waitfor'”操作让测试脚本与被测程序的组件状态同步。