Guest User

Untitled

a guest
Dec 18th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. def after_step(context, step):
  2. time.sleep(2)
  3. if step.status == "failed":
  4. allure.attach(context.browser.driver.get_screenshot_as_file
  5. ('screenshots\{}.png'.format
  6. (step.name)),
  7. name="Screenshot",
  8. attachment_type=AttachmentType.PNG)
Add Comment
Please, Sign In to add comment