0

I use Selenium 3.0, and downloaded IE Edge driver from https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/ version 14393 to match my window 10 version enter image description here

Here is my controls enter image description here

My dropdown list control is working without any problem, but upload control never have a file in the textbox and the Upload button did not working as well.

EdgeDriver driver = new EdgeDriver();
driver.Url = "http://www.test.com";
IWebElement ddl = driver.FindElement(By.Id("ddlDocumentType"));
SelectElement select = new SelectElement(ddl);
select.SelectByIndex(2);
IWebElement fileUpload = driver.FindElement(By.Id("fileUploadControl"));
//Approach 1: SendKeys
string key = @"c:\test.pdf";
fileUpload.SendKeys(key);
Thread.Sleep(1000);
IWebElement btn = driver.FindElement(By.Id("btnSubmit"));
btn.Click();
Thread.Sleep(1000);
driver.Quit();

Anyone know what I am missing for Selenium IE Edge file upload auto test?

Tony Dong
  • 3,127
  • 1
  • 27
  • 30

1 Answers1

0

Your question is the same as Edge Upload File control using Selenium.

The answer, according to jhoward, is that unfortunately this is a known issue.