具体表现:
1、click要等个20多秒才点击,send_keys动作甚至要1份多钟!简直了无语了!!
2.、登录的时候不会,就是登录进去之后就变慢了!
3、真机和模拟器都是如此!
4、排除是xpath问题,用其他选择器也是如此!
我的环境是Python3.5+appium1.7.1,我就纳闷了!运行其他app都不会这样,是不是和appium交互有关系??我又不会看日志...
代码:
appium日志(只截取了登录进去后的):
[HTTP] --> POST /wd/hub/session/a606c76b-ca83-4692-a8b3-5a0feaa910d1/element {"sessionId":"a606c76b-ca83-4692-a8b3-5a0feaa910d1","value":"//android.widget.TextView[@text='']","using":"xpath"}
[MJSONWP] Calling AppiumDriver.findElement() with args: ["xpath","//android.widget.TextView[@text='']","a606c76b-ca83-4692-a8b3-5a0feaa910d1"]
[BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
[BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
[BaseDriver] Waiting up to 20000 ms for condition
[AndroidBootstrap] Sending command to android: {"cmd":"action","action":"find","params":{"strategy":"xpath","selector":"//android.widget.TextView[@text='']","context":"","multiple":false}}
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"find","params":{"strategy":"xpath","selector":"//android.widget.TextView[@text='']","context":"","multiple":false}}
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: find
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding '//android.widget.TextView[@text='']' using 'XPATH' with the contextId: '' multiple: false
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Failed to locate element. Clearing Accessibility cache and retrying.
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding '//android.widget.Tex