title: Exception in thread "main" org.openqa.selenium.NoSuchElementException: Unable to locate element: //*[@id='login-email']
body: <p>I had to re-test the <code>xpath</code>, Previously it was working fine, But now it gives me an error. </p>
  
  <p>I tried with different locators as well, Like <code>id</code>, <code>name</code>. but still get the same error.</p>
  
  <pre><code>package staging;
  
  import org.openqa.selenium.By;
  import org.openqa.selenium.WebDriver;
  import org.openqa.selenium.firefox.FirefoxDriver;
  
  public class login {
  
      public static void main (String[]args){
          System.setProperty("webdriver.gecko.driver","C:\\Program Files\\geckodriver.exe");
          WebDriver driver = new FirefoxDriver();
  
          //opening the browser
          driver.get("https://staging.keela.co/login");
  
          //logging
          driver.findElement(By.xpath("//*[@id='login-email']")).sendKeys("bandanakeela@yopmail.com");
          driver.findElement(By.xpath("//*[@id='login-password']")).sendKeys("keela");
          driver.findElement(By.xpath("//*[@id='login-form']/div[3]/div/button")).click();       
   }
  }
  </code></pre>