Skip to content

Commit 85ae06e

Browse files
Fix send_keys with variable argument by removing variable expansion. (#8840)
Co-authored-by: David Burns <[email protected]>
1 parent 745d01f commit 85ae06e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

py/selenium/webdriver/remote/webelement.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -534,10 +534,10 @@ def send_keys(self, *value):
534534
# transfer file to another machine only if remote driver is used
535535
# the same behaviour as for java binding
536536
if self.parent._is_remote:
537-
local_files = list(map(lambda keys_to_send:
538-
self.parent.file_detector.is_local_file(keys_to_send),
539-
''.join(*value).split('\n')))
540-
if None not in local_files:
537+
local_files = list(map(lambda keys_to_send:
538+
self.parent.file_detector.is_local_file(keys_to_send),
539+
''.join(value).split('\n')))
540+
if not None in local_files:
541541
remote_files = []
542542
for file in local_files:
543543
remote_files.append(self._upload(file))

0 commit comments

Comments
 (0)