seleniumhq.github.io icon indicating copy to clipboard operation
seleniumhq.github.io copied to clipboard

[🐛 Bug]: FAILED tests/drivers/test_remote_webdriver.py::test_downloads - EOFError

Open rdinoff opened this issue 2 years ago • 4 comments

What happened?

$ cd seleniumhq.github.io/examples/python/ $ pytest tests/drivers/test_remote_webdriver.py

The code should be updated to use file_names[0] instead of files[0] as files does not get returned in a consistent order which is why the sort is needed in the assert

       assert sorted(files) == sorted(file_names)
       downloadable_file = file_names[0]
[error.txt](https://github.com/SeleniumHQ/seleniumhq.github.io/files/14042672/error.txt)

What browsers and operating systems are you seeing the problem on?

Description: Ubuntu 20.04.6 LTS Python 3.8.10 selenium-server-4.16.1.jar

rdinoff avatar Jan 24 '24 19:01 rdinoff

@rdinoff, thank you for creating this issue. We will troubleshoot it as soon as we can.


Info for maintainers

Triage this issue by using labels.

If information is missing, add a helpful comment and then I-issue-template label.

If the issue is a question, add the I-question label.

If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted label.

After troubleshooting the issue, please add the R-awaiting answer label.

Thank you!

github-actions[bot] avatar Jan 24 '24 19:01 github-actions[bot]

do you want to PR the fix?

titusfortner avatar Jan 25 '24 02:01 titusfortner

do you want to PR the fix?

yes, I will make a PR

rdinoff avatar Jan 25 '24 15:01 rdinoff

It seems the PR got merged into your fork.

diemol avatar Feb 19 '24 10:02 diemol

This was already fixed.

diemol avatar Apr 25 '24 15:04 diemol