Skip to content

Commit a4f120e

Browse files
authored
Merge pull request #427 from seleniumbase/downloads-folder-exists
If the downloads_folder doesn't exist, create it for downloads
2 parents 681ba40 + ba072bb commit a4f120e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

seleniumbase/fixtures/base_case.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2027,6 +2027,8 @@ def download_file(self, file_url, destination_folder=None):
20272027
(The default downloads folder = "./downloaded_files") """
20282028
if not destination_folder:
20292029
destination_folder = constants.Files.DOWNLOADS_FOLDER
2030+
if not os.path.exists(destination_folder):
2031+
os.makedirs(destination_folder)
20302032
page_utils._download_file_to(file_url, destination_folder)
20312033

20322034
def save_file_as(self, file_url, new_file_name, destination_folder=None):

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545

4646
setup(
4747
name='seleniumbase',
48-
version='1.33.3',
48+
version='1.33.4',
4949
description='Fast, Easy, and Reliable Browser Automation & Testing.',
5050
long_description=long_description,
5151
long_description_content_type='text/markdown',

0 commit comments

Comments
 (0)