0

We are trying to utilize uiautomator testing for your TV applications. But the TV widgets (cards etc) does not respond to click event.

My question is that how can we make sure we navigate (with DPAD keys) to the correct UI widget and 'click' it with DPAD_CENTER?

Robin
  • 10,052
  • 6
  • 31
  • 52

1 Answers1

0

You can try AndroidViewClient/culebra which supports Android TV.

For example this is one extract of a culebra generated script navigating using keys

device.press('DPAD_DOWN')
vc.dump(window=-1)
device.press('DPAD_DOWN')
vc.dump(window=-1)
device.press('DPAD_LEFT')
vc.dump(window=-1)
device.press('ENTER')
vc.dump(window=-1)
Diego Torres Milano
  • 65,697
  • 9
  • 111
  • 134