Commit 6d686dd9 by JonahStanley

Changed the way the file path was obtained

parent 1b5050c9
...@@ -21,7 +21,7 @@ def upload_file(step, file_name): ...@@ -21,7 +21,7 @@ def upload_file(step, file_name):
file_css = '.file-input' file_css = '.file-input'
upload = world.css_find(file_css) upload = world.css_find(file_css)
#uploading the file itself #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' close_css = '.close-button'
world.css_find(close_css).click() world.css_find(close_css).click()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment