Reputation: 2301
Finding (x,y) cordinates of a text in the android UI using dtmilano Android vieClient in Monkeyrunner.
i am getting only relative cordinates using below code:-
vc = ViewClient(devid,deviceid)
dump=vc.dump()
peer_pos = vc.findViewWithAttribute('text:mText',peer_name)
x, y) = peer_pos.getXY()
The (x,y) returning is not correct always.How to find out the real coordinates.somebody please help.
Upvotes: 0
Views: 511