Changed the way the file path was obtained

This commit is contained in:
JonahStanley
2013-06-12 13:32:46 -04:00
parent 1b5050c9ac
commit 6d686dd9f6

View File

@@ -21,7 +21,7 @@ def upload_file(step, file_name):
file_css = '.file-input'
upload = world.css_find(file_css)
#uploading the file itself
upload._element.send_keys(os.getcwd() + '/' + file_name)
upload._element.send_keys(os.path.dirname(__file__) + '/' + file_name)
close_css = '.close-button'
world.css_find(close_css).click()