I unable to sign in gmail account using this following code…..can’t type password

WebDriver driver = new FirefoxDriver();
driver.get(“https://accounts.google.com/ServiceLogin?service=mail&passive=true&rm=false&continue=https://mail.google.com/mail/&ss=1&scc=1&ltmpl=default&ltmplcache=2&emr=1&osid=1#identifier”);
driver.manage().window().maximize();

//working fine//
driver.findElement(By.id(“Email”)).clear();
driver.findElement(By.id(“Email”)).sendKeys(“jrbala84@gmail.com”);
driver.findElement(By.id(“next”)).click();
//working fine//

// Not typing the password
//Used ID,Name also…..
driver.findElement(By.cssSelector(“#Passwd”)).sendKeys(“123456A@”);

driver.findElement(By.id(“signIn”)).click();
driver.findElement(By.id(“gbqfq”)).sendKeys(“00122018”);
driver.findElement(By.id(“gbqfb”)).click();

Add Comment
  • 3 Answer(s)

    Change driver.findElement(By.cssSelector(“#Passwd”)).sendKeys(“123456A@”);
    TO
    driver.findElement(By.id(“Passwd”)).sendKeys(“123456A@”);

    Reviewer Answered on July 23, 2015.
    Add Comment

    Thanks victor…

    Train Answered on July 24, 2015.
    Add Comment

    Dear, balaji18s
    if you won’t mark this question as ANSWERED, I’ll not help you any more.

    Reviewer Answered on July 25, 2015.
    Add Comment
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.