title: Selenium implicitlyWait Not Working?
body: <p>I am learning Java Maven Selenium. I want something like this in Selenium using <code>implicitlyWait</code>.</p>
  
  <ol>
  <li>Open website (for example <a href="https://www.facebook.com" rel="noreferrer">https://www.facebook.com</a>)</li>
  <li>Click on email field of login</li>
  <li>Wait 20 seconds</li>
  <li>Enter my email </li>
  </ol>
  
  <p>Here is my simple code:</p>
  
  <pre><code>package com.org.learningMaven;
  
  import java.util.concurrent.TimeUnit;
  import org.openqa.selenium.By;
  import org.openqa.selenium.Keys;
  import org.openqa.selenium.WebDriver;
  import org.openqa.selenium.chrome.ChromeDriver;
  import org.openqa.selenium.firefox.FirefoxDriver;
  import org.openqa.selenium.support.ui.ExpectedConditions;
  import org.openqa.selenium.support.ui.WebDriverWait;
  import org.testng.annotations.Test;
  
  public class HelloWorldTest {   
      @Test
      public void login() {
          WebDriver driver = new FirefoxDriver();
          driver.get("https://www.facebook.com/");
          driver.findElement(By.id("email")).click();
          driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);
          driver.findElement(By.id("email")).sendKeys("myemail@yahoo.com");
      }
      private void sendKeys(Keys enter) {
          // TODO Auto-generated method stub
  
      }
  }
  </code></pre>
  
  <p>This code is not working. It will simply open Facebook, click on email field &amp; enter my email id instead of waiting 10 seconds before entering my email.</p>