How to clear the default data from a textbox using Python Selenium? I am getting element not interactable error.
HTML:
<div class="emailAttachmentInputMobile">
<input type="text" size="30" maxlength="100" ng-model="emailAttachmentRecipient" class="ng-pristine ng-valid ng-valid-maxlength ng-not-empty ng-touched">
</div>
This is my python code:
DeleteText = driver.find_element_by_xpath("//input[@ng-model='emailAttachmentRecipient'][@type='text']").clear()
Whenever I run this I am getting "Element not interactable" error.
Could someone please help me resolve this issue. I have lost so much of my time to fix this issue but still am not able to fix.