You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It might be something wrong with my code, but the problem is:
My automation process includes clicking on a button that downloads a file. This file, often, has the same name, so when I do it manually the file is downloaded as file.pdf, file(2).pdf, file(3).pdf and so on...
When I made the automation process, two things changed:
The download path is no longer the "DOWNLOADS" folder, but the script.py path;
The downloads keep replacing each other, always with file.pdf name, so I cant have multiple files with the same name
The automation process simply includes the click on the button:
r.click('//*[@id="print-button"]')
Is it normal? Can it be changed?
Thanks!
The text was updated successfully, but these errors were encountered:
Hi @iCreamble! I confirm that these 2 actions are the behaviour for the upstream TagUI project.
There is an open issue there to make it easier to change the download folder - aisingapore/TagUI#1035
But in the meantime, it will be using this line of code to specify download location - #210 (comment)
For overwriting the same file, I don't know how to change this behaviour and not found anything from googling. If you find something you can share with me. Alternatively, every time you download something, you can rename the file to some other filename using Python os.rename - https://www.tutorialspoint.com/python/os_rename.htm
kensoh
changed the title
automatically replacing files when downloading
Automatically replacing files when downloading - yes this is behaviour of downloading files
Jun 8, 2021
kensoh
changed the title
Automatically replacing files when downloading - yes this is behaviour of downloading files
Automatically replacing files when downloading - yes this is behaviour of downloading
Jun 8, 2021
It might be something wrong with my code, but the problem is:
My automation process includes clicking on a button that downloads a file. This file, often, has the same name, so when I do it manually the file is downloaded as file.pdf, file(2).pdf, file(3).pdf and so on...
When I made the automation process, two things changed:
The automation process simply includes the click on the button:
r.click('//*[@id="print-button"]')
Is it normal? Can it be changed?
Thanks!
The text was updated successfully, but these errors were encountered: