UiObject
autojs吧
全部回复
仅看楼主
level 3
电脑🌐 楼主
UiObject(id=com.ss.android.article.lite:id/s8, sourceNodeId=-4294964886, packageName=com.ss.android.article.lite, className=android.widget.TextView, text=06:29, desc=null, indexInParent=2, boundsInParent=【0,0】【89,49】, boundsInScreen=【805,581】【894,630】, checkable=false, checked=false, focusable=false, focused=false, selected=false, clickable=false, longClickable=false, enabled=true, password=false, scrollable=false)
一个UiObject如何得到其中text的值,可以直接.bounds()得到rect,但是.text()得到的是空的
2021年03月28日 08点03分 1
level 3
电脑🌐 楼主
如何得到返回的UiObject中的text的值
2021年03月28日 08点03分 2
level 1
你解决了吗
2021年04月21日 12点04分 3
是auto.js7pro的bug吧,我用4.1就可以
2021年05月08日 10点05分
level 1
试试看
var 文本 = boundsInside(99,99,99,99).findOne()
var 按钮 = 文本.text().findOne().bounds()
click(按钮.centerX(), 按钮.centerY())
2021年05月10日 13点05分 4
level 1
我用的autojs7pro,获取的text内容也是空
2021年06月06日 10点06分 5
1