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"

2
  • Can you share the link? Will adding some wait help there? Commented Apr 14, 2021 at 22:08
  • 1
    Using javaScript executor will help you (every time you have to cheat, so to speak) check this out stackoverflow.com/questions/25583641/… Commented Apr 14, 2021 at 22:20

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.