UiAutomator 取元素的 bounds 坐标后 拖动一下,在取 bounds 为什么不变

skyshine · 2023年10月20日 · 1891 次阅读

el_list = d.xpath('//android.widget.ListView').all()
for ele in quesion_list:
el= ele.elem.getchildren()
pox=el[0].get('bounds')
假设取到了 el[0] 列表里 第一个的 bounds 坐标
然后 d.drag() 把它移动了一下

这时我在用 pox=el[0].get('bounds') 取坐标时,还是移动前的坐标,
怎么能得到移动后的坐标呢?
谢谢

暂无回复。
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册