How to reduce waiting time in Selenium2Library Robot Framework

爷,独闯天下 提交于 2019-12-04 13:40:56

The Wait Until ... keywords in Selenium2Library have an optional argument for specifying the explicit timeout.

E.g. Wait Until Element Is Enabled | locator | timeout=2

The timeout in Wait Until ... keywords is can also be set using below ways:

  1. When importing the Selenium2Library, we can set the value of timeout (default being 5 seconds) argument as- Library | Selenium2Library | 2

Refer the documentation on Importing.

  1. If there's a need to override the timeout (set during importing library), then we use the keyword Set Selenium Timeout.

Refer the documentation on Set Selenium Timeout

Finally, to understand the difference between Explicit Wait and Implicit Wait, please refer this documentation.

Hope this was helpful.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!