Skip to content

Commit 036be09

Browse files
authored
[py] fix return type and docstring of get_downloadable_files (SeleniumHQ#15292)
1 parent ec521e3 commit 036be09

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

py/selenium/webdriver/remote/webdriver.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1381,9 +1381,8 @@ def set_user_verified(self, verified: bool) -> None:
13811381
"""
13821382
self.execute(Command.SET_USER_VERIFIED, {"authenticatorId": self._authenticator_id, "isUserVerified": verified})
13831383

1384-
def get_downloadable_files(self) -> dict:
1385-
"""Retrieves the downloadable files as a map of file names and their
1386-
corresponding URLs.
1384+
def get_downloadable_files(self) -> list:
1385+
"""Retrieves the downloadable files as a list of file names.
13871386
13881387
Example:
13891388
--------

py/test/selenium/webdriver/remote/remote_downloads_tests.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ def test_get_downloadable_files(driver, pages):
2828

2929
assert "file_1.txt" in file_names
3030
assert "file_2.jpg" in file_names
31+
assert type(file_names) is list
3132

3233

3334
def test_download_file(driver, pages):

0 commit comments

Comments
 (0)