title: Test case for Selenium Webdriver and Eclipse java to login GMAIL
body: <p>i need to verify user login in gmail using selenium in Eclipse.
  Following steps are need to complete.
  1 open google website,search gmail, click appropriate results, go to <a href="https://mail.google.com" rel="nofollow noreferrer">https://mail.google.com</a> website, Enter username and pw, Click sign in,verify username. code seems like this but i couldn't automate the password it stops when enter the e-mail</p>
  
  <pre><code> 'package gmailtest;
   import java.util.concurrent.TimeUnit;
  
  import org.openqa.selenium.By;
  import org.openqa.selenium.WebElement;
  import org.openqa.selenium.firefox.FirefoxDriver;
  import org.openqa.selenium.support.ui.ExpectedConditions;
  import org.openqa.selenium.support.ui.WebDriverWait;
  
  public class firstgmail {
  
  public static void main(String[] args) {
      // TODO Auto-generated method stub
      System.setProperty( 
     "webdriver.gecko.driver","C:\\Desktop\\geckodriver-
      v0.16.1-win64\\geckodriver.exe");
      FirefoxDriver driver=new FirefoxDriver();
      driver.navigate().to("http://www.google.com.");
  
      WebDriverWait wait =new WebDriverWait(driver,10);
      String caseOfInputField = "input[name='q']";
      WebElement 
  
     inputFieldQ=wait.until(ExpectedConditions.elementToBeClickable
     (By.cssSelector(caseOfInputField)));
      inputFieldQ.sendKeys("GMAIL");
      //String caseOfSearchButton="button[name='btnG']";
      //WebElement searchButton 
  
     =wait.until(ExpectedConditions.elementToBeClickable(By.
      cssSelector(caseOfSearchButton)));
      //searchButton.click();
  
      driver.get("https://www.gmail.com/");
      driver.manage().window().maximize();
      driver.findElement(By.xpath(".//*[@id='identifierId']")).sendKeys("i@gmail.com");
      //driver.findElement(By.id("Email")).sendKeys("t@gmail.com");
      driver.findElement(By.xpath(".//*[@id='identifierNext']/content")).click();
      //driver.findElement(By.cssSelector("#next"));
  
      driver.findElement(By.xpath(".//*[@id='password']/div[1]/div/div[1]/input")).sendKeys("s@123");;
  
  
      //driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
      driver.findElement(By.id("signIn")).click();
  
  
      //driver.get("http://www.google.com.");
      //driver.findElement(By.xpath(""));
  
  
  
  
       //driver.quit();
  
  }
  </code></pre>
  
  <p>}</p>