import org.openqa.selenium.By;
import org.openqa.selenium.chrome.ChromeDriver;
import io.github.bonigarcia.wdm.WebDriverManager;
public class ClassTest {
public static void main(String[] args) {
WebDriverManager.chromedriver().setup();
ChromeDriver drive = new ChromeDriver();
drive.get("https://accounts.google.com");
drive.manage().window().maximize();
drive.findElement(By.id("identifierId")).sendKeys("********@gmail.com");
drive.findElement(By.xpath("//*[@id=\'identifierNext\']/div/button/span")).click();
drive.findElement(By.name("password")).sendKeys("*******");
drive.findElement(By.xpath("//*[@id='passwordNext']/div/button/span")).click();
}
}
When I trying to login to Gmail using selenium I getting this error "This browser or app may not be secure. Learn more Try using a different browser. If you’re already using a supported browser, you can refresh your screen and try again to sign in." I have even on less security and off 2 step verification too still the same issue, can you please help me with this