I have a error which is org.openqa.selenium.InvalidElementStateException: invalid element state: Element is not currently interactable and may not be manipulated.
I'm just trying to find a search box (idNEXT_SCRN). It never happened when this script is running on local. Only after I integrated this automation script with Jenkins(Maven + Cucumber + Jenkins). Anyone has this issue before? Thank you very much.
Here is the code:
public void navToScr(WebDriver driver, String scr) {
driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);
try {
driver.findElement(By.id("idNEXT_SCRN")).clear();
driver.findElement(By.id("idNEXT_SCRN")).sendKeys(scr);
} catch (ElementNotFoundException e) {
e.printStackTrace();
}
try {
driver.findElement(By.id("idGO_IND_1")).click();
} catch (ElementNotFoundException e) {
e.printStackTrace();
}
}