I have my site here:
AUT
when I do the following:
<code> WebElement password = driver.findElement(By.className("gigya-input-password"));
password.sendKeys(PASSWORD);
</code>
<code> WebElement password = driver.findElement(By.className("gigya-input-password"));
password.sendKeys(PASSWORD);
</code>
WebElement password = driver.findElement(By.className("gigya-input-password"));
password.sendKeys(PASSWORD);
or
<code> WebElement myElement = driver.findElement(By.className("gigya-input-password"));
String js = "arguments[0].setAttribute('value','"+PASSWORD+"')";
((JavascriptExecutor) driver).executeScript(js, myElement);
</code>
<code> WebElement myElement = driver.findElement(By.className("gigya-input-password"));
String js = "arguments[0].setAttribute('value','"+PASSWORD+"')";
((JavascriptExecutor) driver).executeScript(js, myElement);
</code>
WebElement myElement = driver.findElement(By.className("gigya-input-password"));
String js = "arguments[0].setAttribute('value','"+PASSWORD+"')";
((JavascriptExecutor) driver).executeScript(js, myElement);
I get the following error:
org.openqa.selenium.ElementNotInteractableException: element not interactable
How do I enter text into the field w/ selenium webdriver correct?
I already have a Thread.sleep(2000);
to make element visible.
And WebElement password = new WebDriverWait(driver, java.time.Duration.ofSeconds(10)).until(ExpectedConditions.elementToBeClickable(By.className("gigya-input-password")));
gives a TimeoutException
.