gpt4 book ai didi

powershell - 我想使用testcafe创建我的第一个测试,但是出现如下错误

转载 作者:行者123 更新时间:2023-12-02 23:07:50 24 4
gpt4 key购买 nike

我正在Visual Studio代码中使用testcafe编写我的第一个测试,但收到此错误“导入:术语'import'不被识别为cmdlet,函数,脚本文件或可运行程序的名称。请检查名称的拼写,或者如果包含路径,请验证路径正确,然后重试。

At line:1 char:1
+ import { Selector } from 'testcafe';
+ ~~~~~~
+ CategoryInfo : ObjectNotFound: (import:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException"

最佳答案

看来您运行测试不正确。您提供的错误是Powershell错误,与TestCafe不相关。

该命令应为testcafe chrome test.js

请分享您的测试代码,并指定开始测试的方式。

另请参阅以下文章:https://devexpress.github.io/testcafe/documentation/getting-started/

关于powershell - 我想使用testcafe创建我的第一个测试,但是出现如下错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55511039/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com