Hello guys,
Could you please try to help me find what am I doing wrong in the
following code? I am sure it has to something very simple and basic.
Okay here is the code:
--------------------------------------------------------------------------------
mshtml.IHTMLDocument2 riysa = RiysaBrowser.Document as mshtml.IHTMLDocument2;
mshtml.HTMLInputElement File = (mshtml.HTMLInputElement)riysa.all.item("file-input", 0);
File.click();
RiysaBrowser.Focus();
System.Windows.Forms.SendKeys.Send(this.PostImage + "{ENTER}");
--------------------------------------------------------------------------------
Now, I can see that file dialog box does open automatically without
clicking "Browse" button. But for some reason, the file path is not
inserted in the "File name" box of the file upload dialog.
I would really appreciate it if you could please help me out with this one.
Thank you
Loading
Replies
Know the answer? Post it — somebody with the same question will find it here.