Testcafe脚本因此错误而失败'调用导致重定向,因此不应导致其他操作。:n无可用的堆栈跟踪'

问题描述 投票:0回答:1

由于公司政策,我不能把我的代码放在这里。但我会发布整个错误和我在这里遵循的步骤。

   { 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线程中找不到任何解决方案,所以问这里。

如果需要更多信息,请在评论中告诉我,以便我能尽我所能。

node.js automated-tests e2e-testing web-testing testcafe
1个回答
1
投票

不幸的是,这些信息不足以找到问题的原因。

我建议你打开--skip-js-errors选项。

如果它没有帮助,您需要准备一个示例来重现此问题。随意使用the bug template在TestCafe存储库上打开一个新问题。

© www.soinside.com 2019 - 2024. All rights reserved.