1

I'm trying to drag&drop a image to:

<input class="aaa" multiple="" name="bbb" style="display:none;" type="file">

with:

path=os.getcwd()+r'\\'
WebDriverWait(driver, 10).until(EC.presence_of_element_located((By.CSS_SELECTOR, "input.aaa"))).send_keys(path+"b.png")

I can drag and drop the image with this way, but, file upload dialog is shown (I don't need it to be shown).

How to disable (or ignore) the file upload dialog? I don't need it to be shown.

:ps

screenshot of the element: https://i.sstatic.net/pasVs.png

whole code: https://pastebin.com/xbQWViRh

took a video: http://fast-uploader.com/file/7066754812461/

0

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.