title: auto-login in chrome using selenium vba
body: <p>i would like to use vba to access a web site and perform other operation once logged in, but i have problem with log in, using this code</p>
  
  <pre><code>Dim obj As New WebDriver
  Dim Keys As New Keys
  
  
  obj.Start "chrome", ""
  obj.Get "https://a14onlinetrackers.azurewebsites.net/trackers/trackerView/1?i=1"
  
  
   obj.FindElementByName("loginfmt").SendKeys Keys.Control &amp; "t"
  
  obj.FindElementByName("loginfmt").SendKeys ("xxxx@yyy.com")
  obj.FindElementById("idSIButton9").Click
  obj.FindElementByName("passwd").SendKeys ("xxxx")
  obj.FindElementById("idSIButton9").Click
  </code></pre>
  
  <p>after auto-typing the password i have an error on the submit button.</p>
  
  <p>Can you help?</p>
  
  <p>after login in what would be the code to open a new tab on the same browser?</p>
  
  <p>Thank you.</p>