I have a C # windows application project that should open IE, go to the site, log in and upload some files.
I used the shDocvW and mshtml libraries for this. I can open IE, go to the site and log in, but I cannot upload files.
I can go to the website and then add a text value to the input fields (this is a text input field) on the website using
HTMLInputElement txtbox1 =(HTMLInputElement)oDoc.all.item("login", 0); txtbox1.value = "Login_name";
I could even add a text value to the password input field. After I entered the site, I need to upload a file.
The problem I am facing is that I cannot add a path (line) to the input field of type "file".
I can not find any solutions.
source share