I need to edit some readonly
fields with Selenium WebDriver in Java. As Selenium won\'t let me even find this fields I searched for solutions and found that the
I was not able to find the issue with your code. But in the meantime use the code given below.
List inputs = driver.findElements(By.tagName("input"));
for (WebElement input : inputs) {
((JavascriptExecutor) driver).executeScript(
"arguments[0].removeAttribute('readonly','readonly')",input);
}
Let me know if this helps you.