Possible to change chrome default download path?


#1

I basically trying to open a new tab in already opened chrome browser and then trying to run katalon from starting from giving address to further step. So here I want to change the default chrome download path .
It’s my poc requirement that I have to execute katalon in the next tab of already opened window.

Is there any way we can change path bz as per my knowledge if I try doing with selenium then it changes the path of the chromium not chrome ( correct me if I am wrong)

Plz let me know the possible solution. Thanks


#2

You can configure the default download directory as follows:

1.) Open Project > Settings > Desired Capabilities > Web UI > Chrome:

image

2.) Click the ‘Add’ button, and set the name of the new property to ‘prefs’, the type to ‘Dictionary’:

image

3.) In the value column, click on the ellipses, and set name = ‘download.default_directory’, type = String, value = ‘my/downlaod/directory’:

image

Hope this helps!


Unable to download file to specific folder
Open Katalon execution in the already opened browser
#3

Thanks Brandon but I believe it will change the path of chromium not the chrome window which is already open
:frowning:


#4

I’m not sure what you mean. Katalon (and, by extension, Selenium) uses chromedriver to interact with an active instance of the Chrome browser. The steps that I’ve provided above are the equivalent of changing the following setting on your manually-opened Chrome instance:

All of this comes down to the fact that you need a chromedriver that references an active browser instance. Without this, the puppet master has no strings to manipulate the puppet with.


#5

well thanks alot @Bradon_Hein lemme try today once I am back at my office and will update you whther it worked for me or not .Thanks for replying !! :slight_smile:


#6

Thanks it worked :blush:


#7

Thanks Brandon! those steps solved my problem downloading Excel files in Google Chrome versión 72 and katalon studio 5.9


#9

It works. Thanks.
How can I set it by code before using WebUI.openBrowser() ?


#10

Hi, is there a way to do this using Script? How will this work if I have dynamic directories since we are a team.

Thanks!