title: how to fix This browser or app may not be secure. error when using selenium java
body: <pre class="lang-java prettyprint-override"><code>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(&quot;https://accounts.google.com&quot;);
          drive.manage().window().maximize();
          drive.findElement(By.id(&quot;identifierId&quot;)).sendKeys(&quot;********@gmail.com&quot;);
          drive.findElement(By.xpath(&quot;//*[@id=\'identifierNext\']/div/button/span&quot;)).click();
          drive.findElement(By.name(&quot;password&quot;)).sendKeys(&quot;*******&quot;);
  
          drive.findElement(By.xpath(&quot;//*[@id='passwordNext']/div/button/span&quot;)).click();
  
      }
  
  }
  </code></pre>
  <p>When I trying to login to Gmail using selenium I getting this error
  &quot;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.&quot;
  I have even on less security and off 2 step verification too still the same issue, can you please help me with this</p>