Selenium Webdriver unable to get elements in Modal
It seem that <div class="ute-pay-now-modalContent">
contains iframe#sema
with required input
field. Try below code and let me know the result:
WebDriverWait block = new WebDriverWait(driver,10);block.until(ExpectedConditions.visibilityOfElementLocated(By.className("ute-pay-now-modalContent")));driver.switchTo().frame("sema");WebElement pan;pan = modal.findElement(By.id("pan"));