Description
In the Python bindings, there are 2 methods available on all webdriver instances:
get_downloadable_files
download_file
They are used to retrieve files that were downloaded remotely in a Selenium Grid.
However, these only work on Remote webdriver, and fail on local drivers with:
selenium.common.exceptions.WebDriverException: Message: You must enable downloads in order to work with downloadable files.
This occurs oven when adding options.enable_downloads = True
Since these are "Remote-only", the methods should not be available in local webdrivers. In subclasses of WebDriver, they should probably just raise NotImplementedError when called.
Reproducible Code
options = webdriver.ChromeOptions()
options.enable_downloads = True
driver = webdriver.Chrome(options=options)
driver.get_downloadable_files()
Debugging Logs
Description
In the Python bindings, there are 2 methods available on all webdriver instances:
get_downloadable_filesdownload_fileThey are used to retrieve files that were downloaded remotely in a Selenium Grid.
However, these only work on Remote webdriver, and fail on local drivers with:
This occurs oven when adding
options.enable_downloads = TrueSince these are "Remote-only", the methods should not be available in local webdrivers. In subclasses of
WebDriver, they should probably just raiseNotImplementedErrorwhen called.Reproducible Code
Debugging Logs