Penumbra OP
Penumbra OP

Reputation: 39

Can we get View from UIObject class of UIAutomator

Instead of UIObject class, can we get View class from the UI matching process?

Upvotes: 3

Views: 1019

Answers (1)

cmoaciopm
cmoaciopm

Reputation: 2246

In short, the answer is no. You can not get View class from the UI matching process.

UIAutomator is designed to simulate user actions(touch, swipe, drag, etc.). You're not supposed to invoke any method on View directly. And theoretically UIAutomator has provided enough APIs to do any UI operations.

Upvotes: 2

Related Questions