Skip to content

Conversation

@asolntsev
Copy link
Member

@asolntsev asolntsev commented Dec 11, 2025

Now the downloading files from Grid is

  1. much faster, and
  2. much accurate.

Speed

Downloading large files was significantly optimized in Selenium 4.39.0: SeleniumHQ/selenium#16627

Accuracy

Now we check file "last modification time" for detecting if the downloading is completed.
File size + time was added to Grid API in Selenium 4.39.0: SeleniumHQ/selenium#16589

@asolntsev asolntsev marked this pull request as draft December 11, 2025 13:16
@asolntsev asolntsev self-assigned this Dec 11, 2025
@asolntsev asolntsev force-pushed the tests/investigate-flaky-grid-download-test branch 2 times, most recently from d7e11ca to 5f13db7 Compare December 11, 2025 19:21
e.g. `WebDriverException: Unable to execute request for an existing session: Failed to get file attributes: /tmp/uuid10303077473612519879bd9e1b7a-d55b-448c-a408-74900b29cc6b/download6602653343356759423/.com.google.Chrome.GhiE6d`

The bug: SeleniumHQ/selenium#16720
Use file modification time for detecting if the downloading is completed.

* File size + time was added to Grid API in Selenium 4.39.0: SeleniumHQ/selenium#16589
* Also, downloading large files was significantly optimized in Selenium 4.39.0: SeleniumHQ/selenium#16627
@asolntsev asolntsev force-pushed the tests/investigate-flaky-grid-download-test branch from d0744ea to e1ef6f7 Compare December 12, 2025 08:44
@asolntsev asolntsev changed the title investigate flaky Grid download test Improve downloading files from Grid Dec 12, 2025
@asolntsev asolntsev marked this pull request as ready for review December 12, 2025 08:44
@asolntsev asolntsev added this to the 7.13.0 milestone Dec 13, 2025
Currently, tests a'la `downloadLargeFile` download a file of size 5MB. But now you can out 2048 or even 4096 instead.
@sonarqubecloud
Copy link

@asolntsev asolntsev merged commit a94ec29 into main Dec 13, 2025
11 of 15 checks passed
@asolntsev asolntsev deleted the tests/investigate-flaky-grid-download-test branch December 13, 2025 14:09
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.

2 participants