I'm getting `NoSuchElementException` when running the following code.

```
if (driver.findElement(By.xpath("//*[@id='gr2']")).isDisplayed()) {
    Thread.sleep(5000);
    driver.findElement(By.xpath("//*[@id='balInqTableStep2']/td/table/tbody/tr/td/table/tbody/tr[3]/td[4]/input[2]")).click();
}
else {
    test.log(LogStatus.FAIL,"Please configure Gift Slabs for this site. Contact business.");
    test.log(LogStatus.FAIL,"Second time wallet credit is not done");
}

```