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

Method save_file_as

seleniumbase/core/sb_cdp.py:1787–1792  ·  view source on GitHub ↗

Download a file from a URL and rename it. The default download location is: "./downloaded_files/".

(self, file_url, new_file_name)

Source from the content-addressed store, hash-verified

1785 )
1786
1787 def save_file_as(self, file_url, new_file_name):
1788 """Download a file from a URL and rename it.
1789 The default download location is: "./downloaded_files/"."""
1790 self.loop.run_until_complete(
1791 self.page.download_file(file_url, new_file_name)
1792 )
1793
1794 def assert_downloaded_file(self, file, timeout=None):
1795 """Asserts that the file exists in SeleniumBase's [Downloads Folder].

Callers

nothing calls this directly

Calls 1

download_fileMethod · 0.45

Tested by

no test coverage detected