内容不错,认真学习一下
收藏一下
赞,这方法很不错
执行白名单中的 activity, 请问这个命令有问题吗? adb shell CLASSPATH=/sdcard/monkey.jar:/sdcard/framework.jar exec app_process /system/bin tv.panda.test.monkey.Monkey -p packagename --uiautomatormix --pkg-whitelist-file /sdcard/awl.strings 200
请问支持 android 7.1.1 系统的设备吗,例如 vivo X20,我总是连接失败
Traceback (most recent call last):
File "C:\Python\Python35\lib\site-packages\weditor_main.py", line 297, in post
ret = eval(code, {'d': d})
File "", line 1, in
File "C:\Python\Python35\lib\site-packages\uiautomator2__init.py", line 1218, in inner
return fn(self, *args, **kwargs)
File "C:\Python\Python35\lib\site-packages\uiautomator2__init.py", line 1261, in click
self.session.click(x, y)
File "C:\Python\Python35\lib\site-packages\uiautomator2__init.py", line 996, in click
ret = self.jsonrpc.click(x, y)
File "C:\Python\Python35\lib\site-packages\uiautomator2__init.py", line 322, in __call_
return self.server.jsonrpc_retry_call(jsonrpc_url, self.method, params, http_timeout)
File "C:\Python\Python35\lib\site-packages\uiautomator2_init.py", line 329, in jsonrpc_retry_call
return self.jsonrpc_call(*args, **kwargs)
File "C:\Python\Python35\lib\site-packages\uiautomator2__init_.py", line 373, in jsonrpc_call
raise err
uiautomator2.JsonRpcError: -32001 Server error: java.lang.SecurityException
[Finished in 1.259s]
2018 学习一下经济学,理财更加理智一点
说实在话,我对 17 年参加的这场很失望,有益的内容还真不多,聊胜于无吧
可以先使用 uiAutomator 看看能识别出此控件吗,要是无法识别,可以在切换 webview 之前先刷新一下
TouchAction(self.driver).press(x=657, y=1557).move_to(x=4, y=-724).release().perform()
最好别用 swipe 操作,还是用 TouchAction 吧