Skip to content

Commit

Permalink
LocalFileDetector in python should only attempt to upload a file, not…
Browse files Browse the repository at this point in the history
… directory. Fixes Issue 4608
  • Loading branch information
lukeis committed Jan 19, 2013
1 parent 3de95b7 commit d9fd10f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py/selenium/webdriver/remote/webelement.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ def is_local_file(cls, *keys):
return None

try:
if os.path.exists(file_path):
if os.path.isfile(file_path):
return file_path
except:
pass
Expand Down

0 comments on commit d9fd10f

Please sign in to comment.