I am trying to upload the file in the drop zone but I get the error each time
ElementNotInteractableException: element not interactable I am using this code
element = WebDriverWait(driver, 20).until(EC.element_to_be_clickable((By.CLASS_NAME,"dz-message")))
element.send_keys("filename")
The HTML code of the file dropzone is
<div class="mb-4">
<label class="form-check-label mb-2">Payment Requisition/Schedule of
Values</label> <form action="example.com/file_upload" class="dropzone compact animated pulse" id="construction_new_payment_requisition_file_upload">
<input type="hidden" name="_token" value="abc"> <div class="dz-message">
<span class="typcn typcn-document mr-1 display-4"></span>
<p class="mb-0">Click here or drag files here to upload</p>
<p><small class="text-primary">Please note the maximum allowable size of an individual file is 100mb. Images, PDFs, Word & Excel formats are supported only.</small></p>
</div>
</form>
</div>
Is there any method to upload the files in dropzone? Anyone who can help me in this regard
Aucun commentaire:
Enregistrer un commentaire