Need: Update fields on url & click button using Selenium (Screenshot of Webpage & HTML details below)
Issue: Returns an error as shown below
Error:
Exception in thread "main" org.openqa.selenium.ElementNotInteractableException:
element not interactable
(Session info: chrome=78.0.3904.70)
Research: I referred to the following but was unable to fix it - Link1 Link2
Code: Based on the suggestions in other links have added Wait & also sleep, but still not working.
WebDriver driver = new ChromeDriver();
driver.get(url);
WebElement email = driver.findElement(By.xpath("//label[contains(text(),'User ID')]"));
WebElement password = driver.findElement(By.xpath("//label[contains(text(),'Password')]"));
new WebDriverWait(driver,20);
try {
Thread.sleep(10000);
} catch (InterruptedException e) {
e.printStackTrace();
}
email.sendKeys("myemail@gmail.com");
HTML & WebPage View: Link
Hope the issue faced is clear, await guidance.