utilities icon indicating copy to clipboard operation
utilities copied to clipboard

Add screenshot on failure

Open KaptenJansson opened this issue 9 years ago • 1 comments

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

KaptenJansson avatar Feb 23 '16 12:02 KaptenJansson

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

combined with fs.writeFileSync solves the first part.

fippo avatar Oct 20 '17 14:10 fippo