A link on the page opens the file explorer of Windows.
Now I would like to send c:\temp\file1.txt
to it.
Picture of Windows Explorer:
How can I do that?
What I tried is:
string BaseWindow = _webDriver.CurrentWindowHandle;
IJavaScriptExecutor jsExec = (IJavaScriptExecutor)_webDriver;
Thread.Sleep(1000);
jsExec.ExecuteScript("arguments[0].value = 'C:\\temp\\file1.txt'; ", BaseWindow);
which did not break the script actually but it didn't give the proper effect either.