Forum Discussion
You probably don't need to. Here's what we do for something similar
- Use the "Sys.Username" property to grab the username of the user currently logged in
- Get that user's "Download" directory (C:\Users\<username>\Downloads) and find the file downloade
- Use aqFileSystem object to copy the file from that directory to your desired destination.
That's ultimately easier than messing around with changing Chrome settings or manipulating download dialogs.
We are trying to automate so the download needs to be directed to the Shared Google drive for this test. The file will be created once a month. Is there a way to change Chrome settings or manipulating download dialogs during the test and then resetting back?
- tristaanogre6 years agoEsteemed Contributor
My suggestion was an automation suggestion. You would write code to do so. Let Chrome download to the default folder and then, after the download, write code to move the file as indicated. My guess is that you're not automating/testing the ability of Chrome to download to the Shared Google drive. So, how the file gets to the shared google drive is, most likely, immaterial to the test.
- BenoitB6 years agoCommunity Hero
Currently you CANT set Chrome to download directly to google drive
But there is extensions that allows it:
https://chrome.google.com/webstore/detail/save-to-google-drive/gmbmikajjgmnabiglmofipeabaddhgne
The problem is that extension manipulation in Chrome is sometimes not easy.
But just try perhaps ?