
("get_file_content executed successfully")ĭriver = webdriver.Remote(self.hubUrl, self.capabilities_chrome) Raise Exception("Failed to get file content: %s" % result) Public class selenium_grid_download_files extends TestCase " This java example code is also available as a maven project on Github. Do let us know if you have a test scenario requiring downloading files larger than 50mb.Īlso see our selenium grid files upload example. NOTE: if you do download a file to local, typically keep the file size below 50 mb as base64 encoding do enlarge the file on the node when read and are subject to resource limitations.

Make sure you check for downloaded files in the same selenium session, maybe in another tab or window, as the next test is routed to next available grid node and will not necessary run on the grid node you downloaded the files to. The main advantage of using "chrome://downloads" is that it only displays the files downloaded in the session and ignores previously downloaded files to the grid node.


Validate downloaded files to the grid node by using "chrome://downloads" to either just check that they did download or do further validation locally by downloading the file to your local machine. Selenium V3/V2 grid download file example code is shown below.
