Error: Unable to locate element: {"method":"xpath","selector":".//*[@id='billing:firstname']"}
<p>Somebody please help me. I am simply trying to enter the text into the text box, but facing same error from a long time.</p>

<p>I have a constructor class and main class: </p>

<blockquote>
  <p>Unable to locate element:
  {"method":"xpath","selector":".//*[@id='billing:firstname']"} Command
  duration or timeout: 20.24 seconds</p>
</blockquote>

<p>CODE:</p>

<pre><code>@Test
public void FillFormPTC() throws InterruptedException {

    SecondCat home= new SecondCat(driver);

    driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);
    // driver.switchTo().defaultContent();
    // WebElement input = (new WebDriverWait(driver, 25)).until(ExpectedConditions.presenceOfElementLocated(By.xpath(".//*[@id='billing:firstname']")));
    home.TextFirstname("joe");    
}
</code></pre>