Testcafe:找不到资源的 dns 记录
Testcafe: Failed to find a dns-record for the resource
我正在尝试 运行 从 Macbook 中创建一个简单的脚本,如下所示。当我从个人家庭网络尝试时,这 运行 没问题,但在 corporate/office 网络上失败并出现错误“ 未能找到资源 的 DNS 记录”。
在 Macbook 中,代理是在系统级别配置的,所以我假设 Testcafe 浏览器会话会引用相同的内容。我还尝试在 TestCafe 运行 参数中强制代理,但也没有用。我重新检查了防火墙设置,该节点在允许的程序列表中。如有任何帮助,我们将不胜感激。
import { Selector } from 'testcafe';
fixture `Hello Google`
.page `https://www.google.co.in/`
test('My first test', async t => {
console.log ("Hi Google")
})
我有节点 12.14.0、npm 6.13.4 和 testcafe 1.6.1。我也尝试了 testcafe 1.7.1,结果是一样的。
该问题已通过在配置文件中指定代理设置得到解决。
https://devexpress.github.io/testcafe/documentation/reference/configuration-file.html#proxy
我正在尝试 运行 从 Macbook 中创建一个简单的脚本,如下所示。当我从个人家庭网络尝试时,这 运行 没问题,但在 corporate/office 网络上失败并出现错误“ 未能找到资源 的 DNS 记录”。
在 Macbook 中,代理是在系统级别配置的,所以我假设 Testcafe 浏览器会话会引用相同的内容。我还尝试在 TestCafe 运行 参数中强制代理,但也没有用。我重新检查了防火墙设置,该节点在允许的程序列表中。如有任何帮助,我们将不胜感激。
import { Selector } from 'testcafe';
fixture `Hello Google`
.page `https://www.google.co.in/`
test('My first test', async t => {
console.log ("Hi Google")
})
我有节点 12.14.0、npm 6.13.4 和 testcafe 1.6.1。我也尝试了 testcafe 1.7.1,结果是一样的。
该问题已通过在配置文件中指定代理设置得到解决。
https://devexpress.github.io/testcafe/documentation/reference/configuration-file.html#proxy