3

I am trying to create automated tests for our app using UIAutomator. Part of our tests involves scanning multiple QR codes. I found a way to load a the QR code images to the virtual scene using this solution: Android emulator camera custom image

However, I need to navigate the inside the scene in order to scan the intended QR code. Manually, I can navigate by holding option + WASD or option + mouse movement but I wish to do in automatically using code.

virtual scene image

I have tried looking into work arounds like sending keystrokes for the mentioned keys above, or manipulating the x,y,z rotation coordinates of the emulator to move the view, but to no avail.

Nimantha
  • 6,405
  • 6
  • 28
  • 69
Gian Lim
  • 31
  • 1
  • 2
  • You should be able to adjust the x,y and z position in your Toren1BD.posters. They tell the Android emulator where the image should be displayed. – Nils Reichardt Apr 29 '22 at 15:50

0 Answers0