[py] Make sure we are checking a string for local file detector
@@ -535,8 +535,8 @@ class WebElement(BaseWebElement):
# the same behaviour as for java binding
if self.parent._is_remote:
local_files = list(map(lambda keys_to_send:
- self.parent.file_detector.is_local_file(keys_to_send),
- ''.join(value).split('\n')))
+ self.parent.file_detector.is_local_file(str(keys_to_send)),
+ ''.join(str(value)).split('\n')))
if None not in local_files:
remote_files = []
for file in local_files:
