Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Robotframework keyword about wait time

Shulou Source: shulou.com Published: 2022-06-03 06:15:48 09月19日 Update

1,Sleep

The logic of a thread waiting for a process to wait N seconds before running.

2,Implicit Wait

Implicit wait, Get Selenium Implicit Wait and Set Selenium Implicit Wait respectively take the implicit wait time and set the implicit wait time; implicit wait, find the element within a certain period of time and run immediately, if the specified time is exceeded, an error will be reported.

(1) the default acquisition time for Get Selenium Implicit Wait is 0 seconds.

(2) the default time of Set Selenium Implicit Wait is 0 seconds, which is used before the next action.

3,Speed

This keyword is used to slow down the execution so that the execution can be seen clearly when debugging. Get Selenium Speed and Set Selenium Speed keywords are provided.

4the global timeout time-out

The default value is 5 seconds. The keywords provided are: Get Selenium Timeout and Set Selenium Timeout

The global timeout can also be set when Selenium2Library is introduced.

5. The waiting keywords are closely related to timeout.

If the following parameter is left empty, it will be the global timeout of timeout.

Wait Until Element Contains waits for elements to match

Wait Until Element Is Enabled wait element is available

Wait Until Element Is Visible waits for elements to be visible

Wait Until Page Contains waits for page content to match

Wait Until Page Contains Element waits for page elements to match

Tags: Time element key keyword global time page run closely related two content action parameter thread process logic immediately will report Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info MySQL Xiaomi Microsoft NVidia