title: Having issue on getting OTP while Automation Testing using Selenium on Windows 11 Chrome Browser
body: <p>I was executing Automation Testcase on Chrome Browser using Cucumber+Selenium Java(Eclipse) on <strong>Windows 11</strong> for Adding OTP for Account Confirmation Screen Received from Email.
  Following Error Message was Displayed on Console:</p>
  <pre><code>javax.mail.AuthenticationFailedException: [ALERT] Please log in via your web browser: https://support.google.com/mail/accounts/answer/78754 (Failure)
      at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:732)
      at javax.mail.Service.connect(Service.java:366)
      at javax.mail.Service.connect(Service.java:246)
      at utils.OTPNumberReader.OTPNumberValue(OTPNumberReader.java:41)
  </code></pre>
  <p>As I was executing same testcase on <strong>Windows 10</strong> Chrome, OTP was entered into Account Confirmation Screen.</p>
  <pre><code>try {
      Properties properties = new Properties();
      FileInputStream fis = new FileInputStream(
              System.getProperty(&quot;user.dir&quot;) + File.separator + &quot;src&quot;
          + File.separator + &quot;test&quot; + File.separator + &quot;resources&quot; + File.separator + &quot;data.properties&quot;);
      //FileInputStream fis = new FileInputStream(System.getProperty(&quot;user.dir&quot;) + &quot;/src/test/resources/data.properties&quot;);
      properties.load(fis);
      String host = properties.getProperty(&quot;host&quot;);
      String username = properties.getProperty(&quot;username&quot;);
      String password = properties.getProperty(&quot;password&quot;);
      properties.put(&quot;mail.imap.host&quot;, host);
      properties.put(&quot;mail.imap.port&quot;, &quot;993&quot;);
      properties.put(&quot;mail.imap.starttls.enable&quot;, &quot;true&quot;);
      properties.put(&quot;mail.imap.ssl.trust&quot;, host);
      Session emailSession = Session.getDefaultInstance(properties);
      Store store = emailSession.getStore(&quot;imaps&quot;);
      store.connect(host, username, password); //&lt;- Error on This line
      Folder inbox = store.getFolder(&quot;INBOX&quot;);
  
      inbox.open(Folder.READ_ONLY);
  
      Message msg = inbox.getMessage(inbox.getMessageCount());
      Address[] in = msg.getFrom();
  
      for (Address address : in) {
  
      }
  </code></pre>
  <p>Need Help over this.</p>