private void button2_Click(object sender, EventArgs e)
{ string url = ""; for (int i = 0; i < urls.Count; i++) { if (!string.IsNullOrEmpty(urls[i])) { url = urls[i]; urls[i] = ""; break; } }var doc = webBrowser1.Document.Window.Frames[0].Document;
HtmlElement elefile = doc.GetElementById("file_test"); ImitateSelectFile temobj = new ImitateSelectFile(); temobj.Select(elefile, url); }