1

I'm trying to figure out how to upload a file via WebBrowser, found this alternative to code below . I tried for hours but I couldn't make this working. Would someone point out what's wrong with the implementation?

I'm using this (pretty bad, since it requires the application to be on front of all):

HtmlElement file = browser.Document.GetElementById("file");
file.Focus();
SendKeys.Send(filePath + "{ENTER}");
Jack
  • 16,276
  • 55
  • 159
  • 284

0 Answers0