关于选择器属性方法的疑问
#958
Replies: 1 comment 2 replies
-
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
lisonge
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
为什么表达式顺序不同有的能选中节点而有的不能呢?并且加上一些属性后也不能选中节点
快照:https://i.gkd.li/i/19633571
以下选择器可以选中节点:
LinearLayout[childCount=2][getChild(0).id=null&&text=null] > LinearLayout[index=1][clickable=true][visibleToUser=true][childCount=0],以下选择器不能选中节点:
LinearLayout[childCount=2][getChild(0).text=null&&id=null] > LinearLayout[index=1][clickable=true][visibleToUser=true][childCount=0]LinearLayout[childCount=2][getChild(0).id=null&&text=null&&childCount=0] > LinearLayout[index=1][clickable=true][visibleToUser=true][childCount=0]Beta Was this translation helpful? Give feedback.
All reactions