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.stack.imgur.com/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 that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.