title: Exception in thread "main" org.openqa.selenium.NoSuchElementException: no such element: Unable to locate element: {"method":"id","selector":"name"}
body: <p><a href="https://i.stack.imgur.com/4AbJj.png" rel="nofollow noreferrer">enter image description here</a>Source   </p>
  
  <pre><code>&lt;input id="name" name="name" type="text" style="box-sizing:border-box;-moz-box-sizing:border-box;position:absolute;left:130px;top:50px;width:220px;"&gt;
  </code></pre>
  
  <p>This is my code </p>
  
  <pre><code>WebElement VARName = driver.findElement(By.id("name"));
      VARName.sendKeys("Krishna-05");
  </code></pre>
  
  <p>The page in this subject is a pop up page.</p>
  
  <p>Error:</p>
  
  <blockquote>
    <p>Exception in thread "main" org.openqa.selenium.NoSuchElementException:
    no such element: Unable to locate element:
    {"method":"id","selector":"name"}   (Session info:
    chrome=61.0.3163.100)   (Driver info: chromedriver=2.32.498550
    (9dec58e66c31bcc53a9ce3c7226f0c1c5810906a),platform=Windows NT
    10.0.10240 x86_64) (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 0 milliseconds</p>
  </blockquote>
  
  <p>I tried finding with css,xpath,name etc and no use. All of them exhibit the same error. I'm using Selenium Webdriver with Java on Eclipse.</p>
  
  <pre><code>package open_chrome;
  
  import java.util.Iterator;
  import java.util.Set;
  import java.util.concurrent.TimeUnit;
  import org.openqa.selenium.By;
  import org.openqa.selenium.WebDriver;
  import org.openqa.selenium.WebElement;
  import org.openqa.selenium.chrome.ChromeDriver;
  import org.openqa.selenium.support.ui.Select;
  
  public class Chrome_Driver {
  
  public static void main(String[] args) throws InterruptedException{
  
      WebDriver driver = new ChromeDriver();
      driver.manage().window().maximize();
      driver.get("https://&lt;website.com&gt;/");
  
      driver.findElement(By.id("email")).sendKeys("docker@de.com");
      driver.findElement(By.id("password")).sendKeys("Test1234");
      driver.findElement(By.cssSelector("body &gt; div:nth-child(1) &gt; div &gt; div &gt; 
      form &gt; div:nth-child(5) &gt; button")).click();
      //Adding New VAR
  
      driver.findElement(By.id("ext-gen224")).click();
      driver.findElement(By.id("ext-gen367")).click();
      String parentWindow = driver.getWindowHandle();
  //      Set&lt;String&gt; handles =  driver.getWindowHandles();
      for(String childWindow:driver.getWindowHandles())
      {
          driver.switchTo().window(childWindow);
          driver.findElement(By.id("name")).sendKeys("Krishna-05");
      }
  </code></pre>