Automating gmail login [During oAuth] gets blocked with user verification
问题 This code works to login to gmail public void login(User user) { WebDriverWait wait = new WebDriverWait(driver, 60); WebElement emailTextBox = wait.until( ExpectedConditions.visibilityOfElementLocated(By.id("identifierId"))); emailTextBox.sendKeys(user.email); WebElement nextButton = wait.until( ExpectedConditions.visibilityOfElementLocated(By.xpath("//span[contains(text(), 'Next')]"))); nextButton.click(); WebElement passwordTextBox = wait.until( ExpectedConditions.visibilityOfElementLocated