Skip to content

Download files in Selenium Grid#2659

Merged
asolntsev merged 6 commits intomainfrom
download-files-in-grid
Feb 22, 2024
Merged

Download files in Selenium Grid#2659
asolntsev merged 6 commits intomainfrom
download-files-in-grid

Conversation

@asolntsev
Copy link
Member

@asolntsev asolntsev commented Feb 21, 2024

Now method $.download(FOLDER) works in Selenium Grid too.

@asolntsev asolntsev linked an issue Feb 21, 2024 that may be closed by this pull request
@asolntsev asolntsev force-pushed the download-files-in-grid branch from f50e0f5 to 869602f Compare February 21, 2024 19:03
@asolntsev asolntsev self-assigned this Feb 21, 2024
@asolntsev asolntsev added this to the 7.2.0 milestone Feb 21, 2024
HttpResponse response = client.execute(request);
FileContentResponse fileContent = parseDownloadedFile(Contents.string(response));
Zip.unzip(fileContent.value().contents(), targetFolder);
File file = new File(targetFolder, fileName);

Check failure

Code scanning / CodeQL

Uncontrolled data used in path expression

This path depends on a [user-provided value](1).
P.S. Removed few duplicate test-cases from FileDownloadToFolderTest
we are not stopping the previous servers, thus getting OutOfMemory very quickly.
@asolntsev asolntsev force-pushed the download-files-in-grid branch from 869602f to 4971ee9 Compare February 21, 2024 19:18
@asolntsev asolntsev force-pushed the download-files-in-grid branch from de95bad to 3bf2c7c Compare February 22, 2024 21:31
@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
4.1% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud

@asolntsev asolntsev merged commit d78b96d into main Feb 22, 2024
@asolntsev asolntsev deleted the download-files-in-grid branch February 22, 2024 22:33
asolntsev added a commit that referenced this pull request Feb 24, 2024
I realized that RemoteWebDriver already contains methods `getDownloadableFiles`, `downloadFile` `deleteDownloadableFiles` :)
asolntsev added a commit that referenced this pull request Feb 24, 2024
I realized that RemoteWebDriver already contains methods `getDownloadableFiles`, `downloadFile` `deleteDownloadableFiles` :)
asolntsev added a commit that referenced this pull request Feb 25, 2024
I realized that RemoteWebDriver already contains methods `getDownloadableFiles`, `downloadFile` `deleteDownloadableFiles` :)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement downloading files in Selenium Grid (FOLDER mode)

2 participants