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: I have used the following locator strategies:
Using CSS_SELECTOR:
WebDriverWait(driver, 20).until(EC.element_to_be_clickable((By.CSS_SELECTOR, "div.emailAttachmentInputMobile input.ng-pristine.ng-valid.ng-valid-maxlength.ng-not-empty.ng-touched[ng-model='emailAttachmentRecipient']"))).clear()
Using XPATH:
WebDriverWait(driver,20).until(EC.element_to_be_clickable((By.XPATH,"//div[@class='emailAttachmentInputMobile']//input[@class='ng-pristine ng-valid ng-valid-maxlength ng-not-empty ng-touched' and @ng-model='emailAttachmentRecipient']"))).clear()
I am getting this error:
raise TimeoutException(message, screen, stacktrace) selenium.common.exceptions.TimeoutException: Message:
Could someone please help me resolve this issue. It already took lot of my time but still not able to fix it