[英]Is it possible to get the number of matched elements using Detox or Jest?
I need to get the number of elements in a choice list, to use it later.我需要获取选择列表中的元素数量,以便以后使用。 Is it possible to search elements by type (choice list item type), and then to get the number of matched elements?是否可以按类型(选择列表项类型)搜索元素,然后获取匹配元素的数量?
I saw the atIndex() Detox function, so maybe there is something related?我看到了 atIndex() Detox function,所以也许有什么相关的?
Not possible at the moment, but will be possible soon using the getAttributes()
API.目前不可能,但很快就可以使用getAttributes()
API。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.