Skip to content

Commit 8a03e0c

Browse files
committed
Have get_downloads_folder() return the "./downloaded_files/" path
1 parent 02c84f9 commit 8a03e0c

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

seleniumbase/fixtures/base_case.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3099,12 +3099,8 @@ def get_downloads_folder(self):
30993099
any clicks that download files will also use this folder
31003100
rather than using the browser's default "downloads/" path. """
31013101
self.__check_scope()
3102-
if self.is_chromium() and self.guest_mode and not self.headless:
3103-
# Guest Mode (non-headless) can force the default downloads path
3104-
return os.path.join(os.path.expanduser('~'), 'downloads')
3105-
else:
3106-
from seleniumbase.core import download_helper
3107-
return download_helper.get_downloads_folder()
3102+
from seleniumbase.core import download_helper
3103+
return download_helper.get_downloads_folder()
31083104

31093105
def get_browser_downloads_folder(self):
31103106
""" Returns the path that is used when a click initiates a download.

0 commit comments

Comments
 (0)