这是我的测试
Feature('Test');
Scenario('test something', (I) => {
I.amOnPage("");
I.see("Welcome");
I.fillField('j_username', 'xxxxxx');
I.wait(3);
});
这是我的 codeceptjs.JSON
{
"tests": "asd/*_test.js",
"timeout": 10000,
"output": "./output",
"smartwait":"1000",
"helpers": {
"WebDriverIO": {
"url": "http://localhost:8080/xxxx/",
"browser": "chrome"
}
},
"include": {
"I": "./steps_file.js"
},
"bootstrap": false,
"name": "yenideneme"
}
我正在尝试使用 Webdriverio 助手的 CodeceptJS 进行端到端测试。连接到服务器和
I.see("")
通过。但是添加了I.fillField()
采取这个错误=test something:
unknown error: call function result missing 'value'
我尝试更新 chrome 和 chromedriver 但没有成功。
和其他项目采取错误=
2) e2e
"after each" hook: finalize codeceptjs for "welcome Page @fristBlank":
unknown error: call function result missing 'value'
最佳答案
这可能与 Chrome 65 的问题有关。从 Chrome 64 升级后,我开始看到同样的问题。降级到 64 版应该会暂时有所帮助。
一个长期的解决方案是确保 Chromedriver 升级到 2.36 版,它应该可以与 Chrome 65 一起使用。但是,简单的“npm install chromedriver”可能还不够。您的 Selenium 可能仍会尝试加载旧版本。实际的解决方案取决于您的环境设置。
关于selenium - Q : CodeceptJS "unknown error": call function result missing 'value' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49175711/