Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Add screenshot on failure #13

Open
3 tasks
KaptenJansson opened this issue Feb 23, 2016 · 1 comment
Open
3 tasks

Add screenshot on failure #13

KaptenJansson opened this issue Feb 23, 2016 · 1 comment

Comments

@KaptenJansson
Copy link
Contributor

Description
When debugging issues that only occur on travis it would be really helpful if we could grab a screenshot of the error and make it view-able somewhere.

  • Add screenshot handling in src/js/selenium-lib.js using Webdriver api's (does not look like this is part of the Javascript api, need to investigate this further)
  • Store the file on the travis bot and then upload it S3, documentation here: https://docs.travis-ci.com/user/uploading-artifacts/
  • Include the link to the screenshot in the travis output
@fippo
Copy link
Contributor

fippo commented Oct 20, 2017

driver.takeScreenshot().then((img, err) => {

combined with fs.writeFileSync solves the first part.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants