title: selenium wait few second and run execute next line code
body: <p>I want add wait time of 5 seconds  and run next line </p>
  
  <pre><code>driver.findElement(By.xpath("html/body/div[2]/bookking-
  navbar/nav/div/div/div[1]/div[3]/ul/li[1]/authentication/a/span")).click();
  
  String value=  driver.findElement(By.xpath(".//*
     [@id='username']")).getText();
  </code></pre>
  
  <p>here i want add 5 second wait then run next line if use thread.sleep(500) the web page loading too much time </p>
  
  <pre><code>driver.findElement(By.xpath(".//*[@id='username']")).clear();
  
  driver.findElement(By.xpath(".//*[@id='username']")).sendKeys(value);
  
  driver.findElement(By.xpath(".//*[@id='password']")).sendKeys("apple123");
  
  
  driver.findElement(By.xpath("html/body/div[1]/div/divdiv/button")).click();
  </code></pre>