Path of file sent in sendkeys is not working for choose file automation(webdriver)

Fixed Issue #10098653

Details

Author
Swati C.
Created
Dec 7, 2016
Privacy
This issue is public.
Reports
Reported by 2 people

Sign in to watch or report this issue.

Steps to reproduce

I tried automating choose file(upload file) by writing below snippet.It worked for FF,Chrome,IE11 but the same code is not working for edge. It runs the line but nothing is being selected neither it throws error with that line,it passed on to save button code line and gave error as file required(as per design)

Snippet:
ele.send_keys(self.choose_file_btn, path of the file’)

Attachments

0 attachments

    Comments and activity

    • Please check the following snippet:(python)

      support.send_keys(self.choose_file_btn, ‘Path of the file’)

      Here we have defined a send_keys for giving locators path as well as send_keys value.

    • Microsoft Edge Team

      Changed Assigned To to “Brad E.”

      Changed Assigned To to “Mara P.”

      Changed Assigned To from “Mara P.” to “Ben B.”

      Changed Status to “Fixed”

    • Sending keys to an input type file is actually a special case (for instance, trying to set the value of input type="file" fails using the DOM in all browsers). We are tracking this work as a feature request and are hoping to get to it in the future as we do see it as necessary for testing.

    • }This issue has been resolved External. This means this issue may require a new feature to be implemented or other work that is more significant than a typical bug. You may be able to find more information on this issue by searching for related features on status.microsoftedge.com and uservoice.microsoftedge.com.

    You need to sign in to your Microsoft account to add a comment.

    Sign in