robotframework-browser
robotframework-browser copied to clipboard
If `downloadsPath` is set for New Browser files get deleted, documentation leaves this unclear
Describe the bug
The docs for New Browser downloadsPath say this:
downloadsPath If specified, accepted downloads are downloaded into this folder. Otherwise, temporary folder is created and is deleted when browser is closed.
It does not state anything about what happens to files at browser close, if this is defined. At least a couple users have been mislead by this.
Expected behavior
Either make the docs for downloadsPath clearly say that files get deleted in any case, or have files not be deleted if downloadsPath is set.
The #1889 and this might have same root cause. Should be retested when next release goes out.
I also implemented that the saveAs argument, if given a relative path and if downloadsPath is set, will be relative to downloadsPath.