Hey there, I've been working on a script to login to Gmail, but I'm having trouble with entering the password after entering the email.
public static void main(String[] args) throws Exception {
System.setProperty("webdriver.chrome.driver", "E:\\Download\\chromedriver_win32\\chromedriver.exe");
WebDriver driver=new ChromeDriver();
driver.get("https://accounts.google.com/ServiceLogin?service=mail&passive=true&rm=false&continue=https://mail.google.com/mail/&ss=1&scc=1<mpl=default<mplcache=2&emr=1&osid=1#identifier");
Thread.sleep(4000);
WebElement myElement = driver.findElement(By.id("Email"));
myElement.sendKeys("<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="90e4f5e3e4d0f7fdf1f9fcbef3fffd">[email protected]</a>");
driver.findElement(By.id("next")).click();
Thread.sleep(2000);
driver.findElement(By.id("Passwd"));
myElement.sendKeys("testing");
driver.findElement(By.id("signIn")).click();
}
Any suggestions or assistance would be greatly appreciated!