|
Solo solo = new Solo(getInstrumentation(), getActivity());
期望结果,弹出一个退出登录提示框.
实际结果,直接退出应该用了
尝试的方法:
1.solo.goback()
2.solo.sendKey(KeyEvent.KEYCODE_BACK)
3.adb shell
Process p = Runtime.getRuntime().exec("su");
OutputStream outputStream = p.getOutputStream();
DataOutputStream dataOutputStream=new DataOutputStream(outputStream);
dataOutputStream.writeBytes("input keyevent 4");
dataOutputStream.flush();
dataOutputStream.close();
outputStream.close();
有大神能解答下么,谢谢了 |
|