I have a c# windows app project which has to open IE, navigate to a website, login and then upload a few files.
I used shDocvW and mshtml libraries to do this. I am able to open IE, navigate to the website and login but am not able to upload the files.
I am able to navigate to the website and then add a text value to the input fields(This is an input field of type "text") on the website using -
HTMLInputElement txtbox1 =(HTMLInputElement)oDoc.all.item("login", 0);
txtbox1.value = "Login_name";
I also was similarly able to even add a text value to the input field of type "password". After I logged in to the website, I have to upload a file.
The problem I am facing is that I am not able to add the path(a string) to the input field of type "file".
I am not able to find any solutions.