0

My program is trying to establish a VPN connection, thus, I get the Android message about "Connection Request - your software wants to setup a VPN connection ... Only accept if you trust the source". From uiautomationviewer I saw the ID is id/button1. So, I've used this

easy_device.touch(By.id('id/button1'), MonkeyDevice.DOWN_AND_UP)

The OK button according to uiautomationviewer is at [810,1162][978,1288], But monkeyrunner taps on X=866, Y=709

170725 15:43:I [main] [com.android.chimpchat.ChimpManager] Monkey Command: tap 866 709.

What am I doing wrong?

Simon Schnell
  • 1,160
  • 14
  • 24
Tzach Solomon
  • 688
  • 8
  • 27
  • 1
    IIRC monkeyrunner messes dialog coords. Give [AndroidViewClient/culebra](https://github.com/dtmilano/AndroidViewClient) a try and it should do it right. – Diego Torres Milano Jul 25 '17 at 20:38
  • Thanks @DiegoTorresMilano, I tried but from some reason AndroivViewClient is not working ok on my mac. I've managed by calculating the position relative to other views. – Tzach Solomon Jul 27 '17 at 10:55
  • If you create another question detailing your problem and tag it *androidviewclient* I will try to solve it. – Diego Torres Milano Jul 27 '17 at 13:07

0 Answers0