Tag: ui automation

WebdriverIO:如何正确迭代throus元素并注销getText?

我想学习webdriverio。 我尝试运行这个代码: client.init(). url('https://www.example.com'). elements('p').then((result) => { for (i = 0; i < result.value.length; i++) { (client.elementIdText(result.value[i])). then((re) => console.log(re)) } }) 但是没有注销。 我知道我可以使用getText('p')来做到这一点,但只是想知道如何使用元素('p')来做到这一点。

在cucumberjs,量angular器快速失败

我添加了失败的快速到我的cucumberOpts如下: cucumberOpts: { require: [ conf.paths.e2e + '/utilities/hooks.js', ], format: 'pretty', 'fail-fast': true }, 我有我所有的testing在这样的path:C:/testing/ *。function 我像这样运行我的testing: protractor protractor.conf.js 这工作正常,因为它会在出现错误时立即停止testing。 但是我正在使用像Bamboo这样的CI服务器运行这些testing,我希望能够提供快速的反馈,同时继续运行其余的testing。 所以,如果我4 tests in total有4 tests in total , if the first test fails , I want to fail-fast on that first test if the first test fails ,那么I want to continue running the other […]