问题描述
嗨,我正在使用排毒,我想知道如何获得匹配的数量 一个元素(长度)。
例如“卡”匹配三遍,我该如何获得三遍。
const z = await element(by.id("card"))
https://github.com/wix/Detox/blob/master/docs/APIRef.Expect.md https://github.com/wix/Detox/blob/master/docs/APIRef.Matchers.md
他们不支持API /:
z输出:
Element {
_invocationManager: InvocationManager {
executionHandler: Client {
isConnected: true,configuration: [Object],ws: [AsyncWebSocket],slowInvocationStatusHandler: null,slowInvocationTimeout: undefined,successfulTestRun: true,pandingAppCrash: undefined
}
},matcher: Matcher { predicate: { type: 'id',value: 'card' } }
}
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)