With selenium nodes is it possible to upload files from pc to web browser?
I want to automate uploading to an authenticated web page. I can do that. After logging in to the web tariff, clicking on the file upload button opens the window to download the file from the PC and upload the file. It’il be great if I can.
In the page that you have the upload button, there should be an input element which gets the file address (I suggest you to right click on that upload button and select Inspect and there should be an input element for that button). You can select that element in “Find Element” node and send the address (e.g. C:\\folder\\image.jpg) using a “Send Keys” node.
At the web page where it asks you to drop a file or click to choose one, right click and select “Inspect” then you’ll find an input element of type “file”. Select this element with “Find Element” node and send the address using “Send Keys” node.
The page should contain an <input type="file"> element for the uploaded file (if it’s not visible on the page, it should still be present in the DOM). You can set the file path through the “Send Keys” node as described by @armingrudd.
Thank you! You can add a sample file upload stream without a password entry. Because I can do part of the entry and page progress. I can’t figure out the progress steps after you click on the file upload button. it also gives me the chance to learn if there is at least one example of how to add the file path to the file without opening the screen or opening the screen.
I ask you. Please add a workflow instance that opens and installs a file upload screen that does not contain a password entry.
@armingrudd and @qqilihq
I don’t know what to do after the window opens. how do I redirect? I couldn’t see an input option. I couldn’t find it (because I didn’t know too well). Here you need help right here to select and send the file