SyntaxError: JSON.parse at XMLHttpRequest
See original GitHub issueHi,
I’ve faced this issue with TestCafe 0.23.2, that is not present with TestCafe 0.22.0:
1) Error on page "https://cloud-24-canary.eng.hortonworks.com/clusters":
SyntaxError: JSON.parse
at parse (http://10.200.51.193:1337/hammerhead.js:1:22280)
at XMLHttpRequest.f (http://10.200.51.193:1337/hammerhead.js:9:24666)
Browser: Chrome 70.0.3538 / Mac OS X 10.14.0
I get this issue after:
await t
.expect(ClusterPage.getWidget(clusterName + '-os'))
.eql(0, 'check cluster widget has been removed in 15 minutes', { timeout: 900000 });
static getWidget(clusterName: string) {
const isWidgetExists = Selector(PageHelper.elementWithDataQa(clusterName)).with({ visibilityCheck: true })
.exists;
if (isWidgetExists) {
return Selector(PageHelper.elementWithAttribute('data-stack-name', clusterName)).with({
visibilityCheck: true
}).count;
} else {
return 0;
}
}
Google Chrome run options:
{"path":"/Applications/Google Chrome.app","cmd":"--disable-infobars --disable-session-crashed-bubble --no-first-run --new-window --enable-automation --enable-logging --v=1 --no-sandbox --disable-background-networking --disable-software-rasterizer --user-data-dir=\"browser-data/google-chrome\" --disable-web-security --disable-extensions --disable-default-apps --disable-notifications --disable-sync --disable-translate --disable-save-password-bubble --disable-session-crashed-bubble --hide-scrollbars --metrics-recording-only --mute-audio --no-first-run --safebrowsing-disable-auto-update --password-store=basic --ignore-certificate-errors --allow-insecure-localhost","macOpenCmdTemplate":"open -n -a \"{{{path}}}\" --args {{{pageUrl}}} {{{cmd}}}"}
TestCafe run options: {"speed":0.7,"selectorTimeout":80000,"assertionTimeout":120000,"pageLoadTimeout":60000,"skipUncaughtErrors":true}
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (3 by maintainers)
Top GitHub Comments
I think I found the cause of this issue. I will try to fix it and will notify you once the fix is ready.
This thread has been automatically locked since it is closed and there has not been any recent activity. Please open a new issue for related bugs or feature requests. We recommend you ask TestCafe API, usage and configuration inquiries on StackOverflow.