1

I am using MonkeyRunner to test my very broad application and running many different scripts on my devices. However it is taking a long time to figure out where the x/y coordinates are on every touch of the screen. I tried using this nice plugin http://blogs.wittwer.fr/whiler/2011/07/01/editeur-monkeyrunner/ but its coordinates are not accurate enough....Is there any app I can install that will give me a toast for the coordinates I need?

device.touch(225, 182, "DOWN_AND_UP")
Ernest Friedman-Hill
  • 80,601
  • 10
  • 150
  • 186
user182192
  • 729
  • 3
  • 14
  • 26

2 Answers2

3

The coordinates of every touch can be obtained using Settings -> Developer options -> Pointer location, but perhaps you don't need the coordinates at all. Take a look at http://dtmilano.blogspot.ca/2012/05/androidviewclient-q.html which describes how you can use View IDs to obtain coordinates and send events.

Diego Torres Milano
  • 65,697
  • 9
  • 111
  • 134
0

This is great working on a voice app that to push a button without modifying the app itself. On a galaxy s 3 (phone it is for) you must enable developer options by going to settings > more > about device > build number and tap multiple times until developer options are enabled then go back a screen to developer options.