0

my code look like this:

Integer unitOrder = Integer.valueOf(RandomStringUtils.randomNumeric(2));
purchaseOrderData.setOrderUnit(unitOrder);
typeOn(ORDER_FIELD_INGREDIENT, String.valueOf(unitOrder));

I have tried this code:

getDriver().findElement(ORDER_FIELD_INGREDIENT).sendKeys("value", "16");

but still got this error: "element not interactable"

Tika
  • 1
  • Can you share the link? Will adding some wait help there? – Prophet Apr 14 '21 at 22:08
  • 1
    Using javaScript executor will help you (every time you have to cheat, so to speak) check this out https://stackoverflow.com/questions/25583641/set-value-of-input-instead-of-sendkeys-selenium-webdriver-nodejs – FCR Apr 14 '21 at 22:20

0 Answers0