I am trying selenium webdriver for the first time. Want to login in gmail and wrote a program for the same. The code is providing the email id and proceeding further, but it is not entering the password. PFB my program. Can someone help on this?
System.setProperty("webdriver.chrome.driver", "C:\\Selenium Jar Files\\Selenium Jar Files\\chromedriver.exe");
WebDriver driver = new ChromeDriver();
driver.get("https://www.google.co.in/");
String i = driver.getTitle();
System.out.println(i);
driver.findElement(By.linkText("Gmail")).click();
driver.findElement(By.id("Email")).sendKeys("abc@gmail.com");
driver.findElement(By.id("next")).click();
driver.switchTo().frame("gaia_loginform");
driver.findElement(By.id("Passwd")).sendKeys("abc@123");
driver.findElement(By.id("signIn")).click();