4
Friends, I am building a virtual robot to act on a particular site.
In a given action I need to upload a file to the site, but when the robot clicks on the button <input type="file">
logically opens a modal window of Windows Explorer.
Can someone help me close this window?
'Cause I’m already uploading, but the robot won’t 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");
When you choose the file the window does not automatically close?
– PauloHDSousa