Open qingqingcaoyuanlin opened 1 month ago
做了一下简单的测试,直接if判断会走到count逻辑
if d(description='返回').right(text='腾讯新闻'): pass
[D 2024-07-19 10:21:29,260 core:91 pid:10629] http request POST /jsonrpc/0 {'jsonrpc': '2.0', 'id': 1, 'method': 'objInfo', 'params': ({'mask': 64, 'childOrSibling': [], 'childOrSiblingSelector': [], 'description': '返回'},)}
[D 2024-07-19 10:21:29,262 core:93 pid:10629] forward tcp:53792 -> tcp:9008
[D 2024-07-19 10:21:29,402 core:91 pid:10629] http request POST /jsonrpc/0 {'jsonrpc': '2.0', 'id': 1, 'method': 'count', 'params': ({'mask': 1, 'childOrSibling': [], 'childOrSiblingSelector': [], 'text': '腾讯新闻'},)}
[D 2024-07-19 10:21:29,403 core:93 pid:10629] forward tcp:53792 -> tcp:9008
[D 2024-07-19 10:21:29,462 core:91 pid:10629] http request POST /jsonrpc/0 {'jsonrpc': '2.0', 'id': 1, 'method': 'objInfo', 'params': ({'mask': 16777217, 'childOrSibling': [], 'childOrSiblingSelector': [], 'text': '腾讯新闻', 'instance': 0},)}
[D 2024-07-19 10:21:29,463 core:93 pid:10629] forward tcp:53792 -> tcp:9008
[D 2024-07-19 10:21:29,639 core:91 pid:10629] http request POST /jsonrpc/0 {'jsonrpc': '2.0', 'id': 1, 'method': 'objInfo', 'params': ({'mask': 16777217, 'childOrSibling': [], 'childOrSiblingSelector': [], 'text': '腾讯新闻', 'instance': 1},)}
[D 2024-07-19 10:21:29,640 core:93 pid:10629] forward tcp:53792 -> tcp:9008
[D 2024-07-19 10:21:29,849 core:91 pid:10629] http request POST /jsonrpc/0 {'jsonrpc': '2.0', 'id': 1, 'method': 'objInfo', 'params': ({'mask': 16777217, 'childOrSibling': [], 'childOrSiblingSelector': [], 'text': '腾讯新闻', 'instance': 2},)}
[D 2024-07-19 10:21:29,850 core:93 pid:10629] forward tcp:53792 -> tcp:9008
[D 2024-07-19 10:21:30,028 core:91 pid:10629] http request POST /jsonrpc/0 {'jsonrpc': '2.0', 'id': 1, 'method': 'count', 'params': ({'mask': 16777217, 'childOrSibling': [], 'childOrSiblingSelector': [], 'text': '腾讯新闻', 'instance': 2},)}
[D 2024-07-19 10:21:30,029 core:93 pid:10629] forward tcp:53792 -> tcp:9008
跟这个bug有点像。 https://github.com/openatx/uiautomator2/issues/778
不过不应该3.1.0也正常的