Appium 如果关闭 Appium 的查找重试?

ghost · 2017年01月11日 · 1117 次阅读

查找不到控件时 Appium 会重试一次,如何不让它重试呢,感觉这个影响速度
重试信息见下面加粗部分
2017-01-11 03:24:23:157 - [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"find","params":{"strategy":"id","selector":"button1","context":"","multiple":false}}
2017-01-11 03:24:23:157 - [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION
2017-01-11 03:24:23:158 - [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: find
2017-01-11 03:24:23:158 - [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding 'button1' using 'ID' with the contextId: '' multiple: false
2017-01-11 03:24:23:158 - [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[INSTANCE=0, RESOURCE_ID=com:id/button1]
2017-01-11 03:24:33:177 - [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[INSTANCE=0, RESOURCE_ID=android:id/button1]
2017-01-11 03:24:43:246 - [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[INSTANCE=0, RESOURCE_ID=button1]
2017-01-11 03:25:33:480 - [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[DESCRIPTION=button1, INSTANCE=0]
2017-01-11 03:25:43:512 - [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Failed to locate element. Clearing Accessibility cache and retrying.
2017-01-11 03:25:43:512 - [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding 'button1' using 'ID' with the contextId: '' multiple: false
2017-01-11 03:25:43:513 - [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[INSTANCE=0, RESOURCE_ID=com:id/button1]
2017-01-11 03:25:53:611 - [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[INSTANCE=0, RESOURCE_ID=android:id/button1]
2017-01-11 03:26:03:661 - [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[INSTANCE=0, RESOURCE_ID=button1]
2017-01-11 03:26:13:678 - [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[DESCRIPTION=button1, INSTANCE=0]
2017-01-11 03:27:03:909 - [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":7,"value":"No element found"}
2017-01-11 03:27:03:909 - [debug] [AndroidBootstrap] Received command result from bootstrap
2017-01-11 03:27:03:911 - [HTTP] <-- POST /wd/hub/session/8edc32f1-c7f4-4ca2-8cab-5a6c2da29c99/element 500 160769 ms - 164
2017-01-11 03:27:04:623 - [HTTP] --> POST /wd/hub/session/8edc32f1-c7f4-4ca2-8cab-5a6c2da29c99/element {"using":"id","sessionId":"8edc32f1-c7f4-4ca2-8cab-5a6c2da29c99","value":"cancelAdvertise"}

如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!
暂无回复。
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册