由于公司政策,我不能把我的代码放在这里。但我会发布整个错误和我在这里遵循的步骤。
{ type: 'uncaughtErrorOnPage',
isTestCafeError: true,
callsite:
CallsiteRecord {
filename:
'path to file name',
lineNum: 29,
callsiteFrameIdx: 6,
stackFrames:
[ [CallSite],
[CallSite],
[CallSite],
[CallSite],
[CallSite],
[CallSite],
[CallSite],
[CallSite] ],
isV8Frames: true },
errStack:
'Call resulted in redirect and therefore should not cause other actions.:\n No stack trace available',
pageDestUrl: 'https://www.sample.com',
isRejectedDriverTask: true }
我给了url在testcafe中启动,如下所示:**fixt.page('https://www.launchtheurl.com');**
但是当它启动时,它将重定向到另一个带有https://www.sample.com
的页面,然后它会输入登录详细信息并点击登录按钮。并立即脚本将无法抛出上述错误。我在DevExpress的任何testcafe线程中找不到任何解决方案,所以问这里。
如果需要更多信息,请在评论中告诉我,以便我能尽我所能。
不幸的是,这些信息不足以找到问题的原因。
我建议你打开--skip-js-errors
选项。
如果它没有帮助,您需要准备一个示例来重现此问题。随意使用the bug template在TestCafe存储库上打开一个新问题。