diff --git a/lettuce_webdriver/screenshot.py b/lettuce_webdriver/screenshot.py index 12d8dfb..d8385cf 100644 --- a/lettuce_webdriver/screenshot.py +++ b/lettuce_webdriver/screenshot.py @@ -6,11 +6,12 @@ ) import os.path -def set_save_directory(root): +def set_save_directory(base, source): """Sets the root save directory for saving screenshots. Screenshots will be saved in subdirectories under this directory by browser window size. """ + root = os.path.join(base, source) if not os.path.isdir(root): os.makedirs(root)