title: Robot Framework More efficient way to "Sleep"
body: <p>I am using Robot Framework,</p>
  <p>At the moment I have 5-10 test cases and i use sleep to wait for the page to fully load after clicking a button,</p>
  <pre><code>*** Variables ***
  
  ${Name} =  example name
  ${Next_Button} =  xpath=//*[@id=&quot;app&quot;]/div/div[1]/div[3]/div/div/div[1]/div[2]/div/div/div/button[2]
  
  *** Keywords ***
  Open Tab
      Click Element  xpath=//*[@id=&quot;app&quot;]/div/div[1]/div[1]/div[2]/nav/ul/li[2]/a
      Sleep  5s
  
  Open Details
      Click Element  xpath=//*[@id=&quot;app&quot;]/div/div[1]/div[3]/div/div/div[1]/div[2]/div/div[1]/img
      sleep  5s
  
  
  Navigate to Room Details
      click button   xpath=//*[@id=&quot;app&quot;]/div/div[1]/div[3]/div/div/div[1]/div[2]/div/div/button
      click button  ${Next_Button}
      click button  ${Next_Button}
      sleep  3s
  </code></pre>
  <p>When my tests increase to a bigger number it will take a lot of time to run them,</p>
  <p>Whats a more efficient way of using Sleep, or a different keyword that would work for a lot of tests. My web app loads from 1-5 seconds.</p>