You can use the webElement.isEnabled()
and webElement.isDisplayed()
methods before performing any operation in the input field ...
I hope this solves your problem ...
In addition, you can also put a loop to check the above 2 conditions, and if they are true, you can specify the input text, and again you can find the same element, and you can get the text of the web element and compare this text with text. which you entered. If these matches you can exit the loop.
MANOR source share