Steps to reproduce the issue IE driver 32-bit 3.6.0 version
1. Create Selenium IE driver instance
var options = new InternetExplorerOptions
{
EnsureCleanSession = true,
IgnoreZoomLevel = true,
IntroduceInstabilityByIgnoringProtectedModeSettings = true,
EnableNativeEvents = true,
RequireWindowFocus = true
}
driver = new InternetExplorerDriver(options);
2.- this.Driver.Navigate().goToURL("url");
3.- Click file html input (adding all clicks I tried)
public static void SendClick(IWebElement element)
{
Logger.Info("Starting click action");
Actions action = new Actions(element.ToDriver());
action.MoveToElement(element).Click().Build().Perform();
}
public static void JavaScriptClick(IWebElement element)
{
Logger.Info("Starting Javascrit click action");
var javascript = element.ToDriver() as IJavaScriptExecutor;
if (javascript == null)
{
throw new ArgumentException("Javascript null reference");
}
javascript.ExecuteScript("arguments[0].click();", element);
}
also selenium normal click element.click();
html code:
<input id="fileload" name="fileload" accept=".asc, .txt, .csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel" type="file">