question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

v0.6.3 fails to generate screenshots / throws JS exception

See original GitHub issue

What are you trying to achieve?

Get failure screenshots with CodeceptJS 0.6.3. Note: Downgrading to 0.6.2 fixes the issue, so it must be related to some commits in between.

What do you get instead?

No screenshots, output directory is empty, failed test always shows a javascript error/exception at the end, which might prevent the screenshot from being generated Error: Error: Unexpected token ')'

Provide console output if related. Use --verbose mode for more details.

 address-update - test email fields - enGB
 • I am on page "xxxxxxxxxxxxxxxxxxxxxxxxxx"
[...]
 • I see "Email addresses do not match", ".alt_confirm_email .parsley-errors-list"
Error: Unexpected token ')'
 ✖ FAILED in 1666ms

Details

  • CodeceptJS version: 0.6.3
  • NodeJS Version: v7.10.0
  • Operating System: Debian Linux (inside a docker container)
  • WebDriverIO: 4.7.1 (happens with 4.8.0 also)
  • Configuration file:
exports.config = {
    "tests": "./xxxxxxxxxxxxxxxxxxx/tests/frontend/*_test.js",
    "timeout": 10000,
    "output": "./xxxxxxxxxxxxxxxxxxx/tests/frontend/output",
    "helpers": {
        "WebDriverIO": {
            "url": process.env.TEST_HOST || "http://xxxxxxxxxxxxxxxxxxx:8080",
            "browser": "chrome",
            "windowSize": "1024x768"
        }
    },
    "include": {},
    "bootstrap": false,
    "mocha": {
        "reporterOptions": {
            "mochaFile": "./xxxxxxxxxxxxxxxxxxx/tests/frontend/output/codecept-results.xml"
        }
    },
    "name": "frontend"
};

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
foobarthcommented, Jul 27, 2017

Seems to be fixed in 1.0.0 - i’m getting screenshots again on failures. Thanks a lot!

0reactions
APshenkincommented, Jul 25, 2017

@foobarth Please test it with 1.0.0 and send us feedback

Read more comments on GitHub >

github_iconTop Results From Across the Web

v0.6.3 fails to generate screenshots / throws JS exception #593
Get failure screenshots with CodeceptJS 0.6.3. Note: Downgrading to 0.6.2 fixes the issue, so it must be related to some commits in between....
Read more >
Unable to capture objects : Web Driver Exception
I am using Katalon V5.6.3 Appium Version 1.7.2 Android SDK: 28.0.2 ... Original error: Cannot get screenshot data because of 'The size of ......
Read more >
aframe - JavaScript error when generating A-Frame screenshots
The screenshot component is not initialized by the time you try to access its member function. Try creating a new component consisting of ......
Read more >
react native reanimated build error - You.com | The search engine ...
When I installed it with yarn add react-native-reanimated@next , I got the same error because the specific version has not been specified to...
Read more >
Change log for 4.8.33
Bug 2051576: Requeue create on invalid credentials errors #253 ... update terraform-provider-ironic to v0.2.5 to get better error handling #4835 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found