3

无论如何使用uiautomator android执行倾斜动作?我查看了 uiautomatorAPI,但找不到任何直接方法。

4

1 回答 1

2

There are methods that change the device orientation. I assume this is what you want. You could try:

getUiDevice().setOrientationRight();
getUiDevice().setOrientationLeft();
getUiDevice().setOrientationNatural();

For more details on how to use them you can access the link: auiautomator UiDevice

于 2013-08-11T11:41:47.513 回答