Microsoft Edge WebDriver - unable to upload file - sendKeys not working at "input type=file"

External Issue #7194303


Milos S.
Apr 13, 2016
This issue is public.
Reported by 14 people

Sign in to watch or report this issue.

Steps to reproduce

using selenium I’m unable to upload file in Edge. IE works fine with the same code. Follow steps below to reproduce issue:

import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.edge.EdgeDriver;
public class UploadFileEdgeTest {
    WebDriver driver;
    public void setUp() throws Exception {
        System.setProperty("webdriver.edge.driver", "pathToDriver/MicrosoftWebDriver.exe");
        driver = new EdgeDriver();
    public void tearDown() throws Exception {
    public void uploadFile() {


0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Rick J.”

      Changed Assigned To from “Rick J.” to “Ibrahim O.”

      Changed Assigned To to “Rick J.”

      Changed Assigned To to “Mara P.”

      Changed Status to “External”

    • This is a duplicate of a backlogged work item to implement. Normally the value of an input type="file" is not settable except by the browser itself after the user opens the Browse dialog and selects a file.

    • Can you please link the ticket that this issue duplicates so that we can track it’s progress?

    • Can anyone let me know the workaround for this.I am facing the same issue.Not able to send the path of the file through send keys.

    • Is there any work-around for this at this moment? Java-script/Sendkeys do not work on edge driver for uploading a file.

    • Any possible work-around ?

    • As of now, this still appears to be an issue. Lack of this functionality causes inability to test file upload scenarios in Edge. Are there any updates or suggested temporary workarounds for this issue?

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

    Sign in