Friends, I'm building a virtual robot to work on a particular site.
In a certain action I need to upload a file to the site, but when the robot clicks the <input type="file">
button it logically opens a modal window of Windows Explorer.
Can someone help me CLOSE this window?
Well, I'm already able to upload, but the robot does not continue until I close the window ...
<input type="file" name="uploadFile" size="80" tabindex="0" value="Procurar..." style="width:340px">
HtmlElement fieldset = doc.GetElementsByTagName("fieldset")[4];
HtmlElement input_ImpArq = fieldset.GetElementsByTagName("INPUT")[0];
input_ImpArq.InvokeMember("Click");
string caminho = "\C:\9000144.txt";
SendKeys.Send(caminho + "{ENTER}");
HtmlElement formulario = doc.GetElementById("formBusca");
formulario.InvokeMember("submit");