Previously I changed the download location by automating the download settings of google chrome but with the new update, these settings features are not working anymore.
any solution on this?
Hi @Ush_Dhar
Can you try this-
Find the Chrome user profile directory on the machine where UiPath is running. The default path for the user profile directory is usually:
C:\Users<username>\AppData\Local\Google\Chrome\User Data\Default
Note: Replace <username>
with the actual username on your machine.
- Inside the user profile directory, locate the “Preferences” file.
- Use the “Read Text File” activity in UiPath to read the content of the “Preferences” file into a string variable.
- Manipulate the string variable to change the download location. Look for a JSON object within the file that includes the download settings, and modify the corresponding values to set the desired download directory.
- After modifying the string variable, use the “Write Text File” activity to overwrite the “Preferences” file with the updated content.
- Restart Google Chrome for the changes to take effect.
Thanks!!
2023-06-03 14-13-39.zip (2.9 MB)
ask for download.xaml (11.6 KB)
I have attached a video of my problem and the code for your better understanding
I need to trigger the ask where to download button in google chrome. Yesterday before the Chrome update, it was working fine and I was using this code for the last 6 months but it’s not working with the new chrome update anymore.
2023-06-03 14-13-39.zip (2.9 MB)
ask for download.xaml (11.6 KB)
I have attached a video of my problem and the code for your better understanding
@Ush_Dhar I suggest you to one solution. You can use wait for download activity instead of chrome download setting modification.
You can use "wait for download activity " and place that activity inside which you are using to download file.
Can you give me a sample for a better understanding?
That will be great for me.
Thanks
Keep the activity which download the file inside a wait for downlod activity…and wait for download has a output which will give the file which is downloaded…
Also I have checked and you can use this selector
change framework from ui explorer and it is working
<wnd app='chrome.exe' cls='Chrome_WidgetWin_1' title='Settings - Downloads - Google Chrome' /> <ctrl name='Settings - Downloads' role='document' /> <ctrl name='Ask where to save each file before downloading' role='push button' />
Even for me it is not highlighting but you can navigate from the Visual tree in the ui explorer
Cheers
still can’t trigger this button
Can you please share the xmal file?
Can you upgrade the UiPath extension or remove and reinstall it
as the same is working for me
cheers