title: Selenium "Cannot login"
body: <p>I am unable to access through this lock icon and get to login. I have used different locator options.</p>
  
  <p><a href="https://i.stack.imgur.com/XNBoL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XNBoL.png" alt=""></a></p>
  
  <p>The current code I am using:</p>
  
  <pre><code>driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
  driver.manage().timeouts().pageLoadTimeout(30, TimeUnit.SECONDS);
  driver.get("example.com");
  driver.manage().window().maximize();
  driver.findElement(By.id("login-trigger")).click();
  driver.findElement(By.id("username")).sendKeys("User1"); 
  driver.findElement(By.id("password")).sendKeys("123456");
  driver.findElement(By.id("submit")).click();
  </code></pre>