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

skyshine · October 20, 2023 · 1914 hits

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') 取坐标时,还是移动前的坐标,
怎么能得到移动后的坐标呢?
谢谢

No Reply at the moment.
需要 Sign In 后方可回复, 如果你还没有账号请点击这里 Sign Up