链式定位问题
来源:3-12 UiSelector混合定位方式-2

qq_慕先生1244772
2020-06-27
代码:
d(className=“android.widget.TextView”).child_by_text(“蓝牙”, resourceId=“android:id/title”).click()
报错信息:
uiautomator2.exceptions.UiObjectNotFoundError: -32001 Jsonrpc error: <android.support.test.uiautomator.UiObjectNotFoundException> data: for text= “蓝牙”, method: childByText
写回答
1回答
-
大壮老师
2020-07-09
这样用是没有问题的
d(className="android.widget.RelativeLayout").child(text="显示与亮度").click()
00
相似问题