Reputation: 39
Instead of UIObject class, can we get View class from the UI matching process?
Upvotes: 3
Views: 1019
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