-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix send_keys with variable argument by removing variable expansion. (#…
…8840) Co-authored-by: David Burns <[email protected]>
- Loading branch information
1 parent
745d01f
commit 85ae06e
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This line was broken since this commit. the asterisk should not be removed. because it produces a tuple object:
value = '/tmp/6556456-45645645-4545645.jpg'
send_keys(value)
["('/tmp/6556456-45645645-4545645.jpg',)"]
hence, making the os.path.isfile() in is_local_file() unabled to find the file locally.
It should be:
''.join(str(*value)).split('\n')