Hellow, i have element on web page, that is disabled. Here it is: disabled element
<input id="uploadPdfFileName" type="text" placeholder="Test" title="Test" disabled="disabled">
i tried put some text in it with selenium sendKeys() method, but i got this:
OpenQA.Selenium.InvalidElementStateException : invalid element state: Element is not currently interactable and may not be manipulated
How can i put text in this element with selenium chrome driver and c#? Maybe i must try some other ways?
CodePudding user response:
Try maybe to set the text before and then disable it with selenium.
CodePudding user response:
I change "disabled" attribute to false with ExecuteScript() selenium method, before putting text in input with sendKeys(). It woks.