title: How can I ask the Selenium-WebDriver to wait for few seconds after sendkey?
body: <p>I'm working on a C# Selenium-WebDriver. After send key, I want to wait few seconds. I do the following code to wait for 2 seconds.</p>
  
  <pre><code>public static void press(params string[] keys)
  {
         foreach (string key in keys) 
         { 
            WebDriver.SwitchTo().ActiveElement().SendKeys(key);
            Thread.Sleep(TimeSpan.FromSeconds(2));
         }
  }
  </code></pre>
  
  <p>And I call like these:</p>
  
  <pre><code>press(Keys.Tab, Keys.Tab, Keys.Tab);
  </code></pre>
  
  <p>It works fine. Which one is a better way?</p>