Skip to content
Snippets Groups Projects
Commit 9140ba96 authored by Recolic Keghart's avatar Recolic Keghart
Browse files

adjust exit behavior

parent 1e19b042
No related branches found
No related tags found
No related merge requests found
......@@ -63,9 +63,7 @@ print(result)
driver.find_element_by_class_name('dialog_button').click() # Unnecessary.
if result == 'Done successfully!':
driver.close()
else:
exit(3)
driver.close()
exit(0 if result == 'Done successfully!' else 3)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment