下面是我的密码。测试用例是通过的,不管我的实际值是否等于预期,equal.It只是在不相等的时候显示警告消息,但是我的测试用例显示在绿色.I中,在报告中看不到任何失败消息。
代码:
this.VerifyAccountHolder=async function(){
var testPromise = new Promise(function(resolve, reject) {
setTimeout(function() {
resolve(elementAccount.isPresent());
}, 200);
});
var result = a
我正试图让我的头绕着承诺,我得到了这个错误,抱怨未处理的承诺拒绝,但我确实有一个catch,如果它是拒绝!
有人能帮我一下我做错了什么吗?
这是我的代码:
var webdriver = require('selenium-webdriver');
function searchTextOnGoogle() {
var driver = new webdriver.Builder().forBrowser("chrome").build();
driver.get("www.google.com").then(function() {
节点-v 8.9.3
我有自己的模块,它是另一个模块的一部分,如下所示:
module.js
function module(name) {
request(['arr_result1', 'arr_result2', 'arr_result3'], {params, name}) //it's not actual request, I just rename it, 'name' is the same as function
.then(response => {