I am trying to upload a set of files in some of my Selenium scripts which will be used as a pipeline in a deployment process. However the sendKeys approach only works for local files, and the files won't always be in the same folder. Is there a way to have the files in a cloud service (like google drive) and via URL upload them in Selenium scripts?
Asked
Active
Viewed 147 times
3
-
Did you try sending the cloud URLs instead local machine file location paths by `sendKeys()` to the appropriate `input` web element on the site where you trying to upload them? – Prophet Apr 24 '21 at 19:10
-
Add programming language tag – vitaliis Apr 24 '21 at 20:56
-
found this [answer](https://stackoverflow.com/questions/68655918/selenium-file-upload-from-url-instead-of-local-file?rq=1) Got any lead on this question? – Mrcreamio Mar 17 '22 at 06:46