MCPcopy Create free account
hub / github.com/seleniumbase/SeleniumBase / get_downloads_folder

Method get_downloads_folder

seleniumbase/fixtures/base_case.py:8175–8182  ·  view source on GitHub ↗

Returns the path of the SeleniumBase "downloaded_files/" folder. Calling self.download_file(file_url) will put that file in here. With the exception of Safari, IE, and Chromium Guest Mode, any clicks that download files will also use this folder rather than us

(self)

Source from the content-addressed store, hash-verified

8173 f.write(base64.b64decode(pdf_base64))
8174
8175 def get_downloads_folder(self):
8176 """Returns the path of the SeleniumBase "downloaded_files/" folder.
8177 Calling self.download_file(file_url) will put that file in here.
8178 With the exception of Safari, IE, and Chromium Guest Mode,
8179 any clicks that download files will also use this folder
8180 rather than using the browser's default "downloads/" path."""
8181 self.__check_scope()
8182 return download_helper.get_downloads_folder()
8183
8184 def get_browser_downloads_folder(self):
8185 """Returns the path that is used when a click initiates a download.

Callers 10

get_downloaded_filesMethod · 0.95
PatcherClass · 0.80
cdp_util.pyFile · 0.80
get_pdf_textMethod · 0.80

Calls 1

__check_scopeMethod · 0.95

Tested by

no test coverage detected