使用UIAutomator禁用UI元素

时间:2016-04-24 21:45:03

标签: uiautomator android-uiautomator

有没有办法使用UIAutomator禁用Android UI元素,例如editview,按钮,通知区域和软键盘。

提前致谢

1 个答案:

答案 0 :(得分:1)

您只能通过Views表示对UiObject执行操作,例如clear,click,setText等,但您无法像setEnabled那样更改内部视图状态。

要关闭软键盘,您可以发送BACK

相关问题