5
I am developing a process automation system, where my client’s supplier website has a part that needs file uploading. All automation is already developed, missing only this part. I’ve searched several forums, and they all present the solution using Sendkeys. This does not work in my case, was there will be more instances of the robot running on the same machine, and will also have humans using that computer.
I found this project in the codeproject https://www.codeproject.com/articles/28917/setting-a-file-to-upload-inside-the-webbrowser-com. But it didn’t work for me either.
In short
Upload file to a component input type file
via web browser, without using Ndkeys.
Sample html
<form id="frmArq" name="frmArq" method="post" enctype="multipart/form-data" action="./outage_upload.php" target="upload_target">
<input type="file" id="arqEvid" name="arqEvid" value="0">
<input type="hidden" id="id_ticket" name="id_ticket" value="7539371">
<input type="submit" value="Enviar"></form>
You can use Asp.net or the Razor syntax to develop as a web application, it will be easier in many ways, not only for uploading files, applications can be developed with pure language and displayed as a web page, this is just a suggestion, I posted it in response because I don’t have enough reputation to comment on it yet. ps: less than a month on the forum e.e
– Brewerton Santos
nothing yet ? do you have a page that is online for testing ?
– Rovann Linhalis
It’s an intranet.
– Diego Moreno