When I try to programmatically click on an input element (type="file"), ChooseFileDialogWindow doesn't appear. The same problem can be recreated on http://imgbb.com/ by trying to click on 'Start Uploading'. On this website It works only with SimulateMouseButtonEvent, on www.cs.tut.fi it doesn't work.
When setting values to elements there is 1-2 seconds delay until it moves on to the next element. In IE this will be executed instantly. Is this done on porpuse when the browser focuses on the element ? Is there a way to disable it?
browser.LoadURL("http://www.cs.tut.fi/~jkorpela/forms/file.html");
browserView.Browser.FinishLoadingFrameEvent += delegate(object sender, FinishLoadingEventArgs e)
{
if (e.IsMainFrame)
{
Browser myBrowser = e.Browser;
DOMDocument document = myBrowser.GetDocument();
foreach (DOMElement el in document.GetElementsByTagName("input"))
{
if (el.GetAttribute("name") == "datafile")
{
el.Focus();
el.Click();
}
}
}
};