Appium appium1.8 和 1.9 版本 Java iOS 开发,使用 drive.findElement (By.className (typeName)).sendKeys ("**"),有时候会 appium 卡住不动 20%概率左右,也不报错,为什么

苏七缘 · 2018年10月22日 · 1152 次阅读

[XCUITest] Executing command 'findElement'
[BaseDriver] Valid locator strategies for this request: xpath, id, name, class name, -ios predicate string, -ios class chain, accessibility id
[BaseDriver] Waiting up to 0 ms for condition
[JSONWP Proxy] Matched '/element' to command name 'findElement'
[JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8100/session/38C8F042-B008-4365-89C5-3227A9CA5FB1/element] with body: {"using":"name","value":"Back"}
[JSONWP Proxy] Got response with status 200: {"value":{"ELEMENT":"50000000-0000-0000-5F01-000000000000"},"sessionId":"38C8F042-B008-4365-89C5-3227A9CA5FB1","status":0}
[W3C] Responding to client with driver.findElement() result: {"element-6066-11e4-a52e-4f735466cecf":"50000000-0000-0000-5F01-000000000000"}
[HTTP] <-- POST /wd/hub/session/47716845-cf37-411f-ab68-ac2be8546fef/element 200 770 ms - 88
[HTTP]
[HTTP] --> POST /wd/hub/session/47716845-cf37-411f-ab68-ac2be8546fef/element/50000000-0000-0000-5F01-000000000000/click
[HTTP] {"id":"50000000-0000-0000-5F01-000000000000"}
[W3C] Driver proxy active, passing request on via HTTP proxy
[XCUITest] Executing command 'proxyReqRes'
[JSONWP Proxy] Matched '/wd/hub/session/47716845-cf37-411f-ab68-ac2be8546fef/element/50000000-0000-0000-5F01-000000000000/click' to command name 'click'
[JSONWP Proxy] Proxying [POST /wd/hub/session/47716845-cf37-411f-ab68-ac2be8546fef/element/50000000-0000-0000-5F01-000000000000/click] to [POST http://localhost:8100/session/38C8F042-B008-4365-89C5-3227A9CA5FB1/element/50000000-0000-0000-5F01-000000000000/click] with body: {"id":"50000000-0000-0000-5F01-000000000000"}
[JSONWP Proxy] Got response with status 200: {"status":0,"id":"50000000-0000-0000-5F01-000000000000","value":"","sessionId":"38C8F042-B008-4365-89C5-3227A9CA5FB1"}
[JSONWP Proxy] Replacing sessionId 38C8F042-B008-4365-89C5-3227A9CA5FB1 with 47716845-cf37-411f-ab68-ac2be8546fef
[HTTP] <-- POST /wd/hub/session/47716845-cf37-411f-ab68-ac2be8546fef/element/50000000-0000-0000-5F01-000000000000/click 200 1756 ms - 118
[HTTP]
[HTTP] --> POST /wd/hub/session/47716845-cf37-411f-ab68-ac2be8546fef/element
[HTTP] {"using":"class name","value":"XCUIElementTypeSearchField"}
[W3C] Calling AppiumDriver.findElement() with args: ["class name","XCUIElementTypeSearchField","47716845-cf37-411f-ab68-ac2be8546fef"]
[XCUITest] Executing command 'findElement'
[BaseDriver] Valid locator strategies for this request: xpath, id, name, class name, -ios predicate string, -ios class chain, accessibility id
[BaseDriver] Waiting up to 0 ms for condition
[JSONWP Proxy] Matched '/element' to command name 'findElement'
[JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8100/session/38C8F042-B008-4365-89C5-3227A9CA5FB1/element] with body: {"using":"class name","value":"XCUIElementTypeSearchField"}
[JSONWP Proxy] Got response with status 200: {"value":{"ELEMENT":"32000000-0000-0000-5F01-000000000000"},"sessionId":"38C8F042-B008-4365-89C5-3227A9CA5FB1","status":0}
[W3C] Responding to client with driver.findElement() result: {"element-6066-11e4-a52e-4f735466cecf":"32000000-0000-0000-5F01-000000000000"}
[HTTP] <-- POST /wd/hub/session/47716845-cf37-411f-ab68-ac2be8546fef/element 200 679 ms - 88
[HTTP]
[HTTP] --> POST /wd/hub/session/47716845-cf37-411f-ab68-ac2be8546fef/element/32000000-0000-0000-5F01-000000000000/value
[HTTP] {"id":"32000000-0000-0000-5F01-000000000000","text":"iphone xs max case@# ¥%%%…123 账号","value":["i","p","h","o","n","e"," ","x","s"," ","m","a","x"," ","c","a","s","e","@","#"," ","¥","%","%","%","…","1","2","3","账","号"]}
[W3C] Calling AppiumDriver.setValue() with args: [["i","p","h","o","n","e"," ","x","s"," ","m","a","x"," ","c","a","s","e","@","#"," ","¥","%","%","%","…","1","2","3","账","号"],"32000000-0000-0000-5F01-000000000000","47716845-cf37-411f-ab68-ac2be8546fef"]
[XCUITest] Executing command 'setValue'
[JSONWP Proxy] Matched '/element/32000000-0000-0000-5F01-000000000000/value' to command name 'setValue'
[JSONWP Proxy] Proxying [POST /element/32000000-0000-0000-5F01-000000000000/value] to [POST http://localhost:8100/session/38C8F042-B008-4365-89C5-3227A9CA5FB1/element/32000000-0000-0000-5F01-000000000000/value] with body: {"value":["i","p","h","o","n","e"," ","x","s"," ","m","a","x"," ","c","a","s","e","@","#"," ","¥","%","%","%","…","1","2","3","账","号"]}
[HTTP] <-- POST /wd/hub/session/47716845-cf37-411f-ab68-ac2be8546fef/element/32000000-0000-0000-5F01-000000000000/value - - ms - -
[HTTP]
[HTTP] --> POST /wd/hub/session/47716845-cf37-411f-ab68-ac2be8546fef/element/32000000-0000-0000-5F01-000000000000/value
[HTTP] {"id":"32000000-0000-0000-5F01-000000000000","text":"iphone xs max case@# ¥%%%…123 账号","value":["i","p","h","o","n","e"," ","x","s"," ","m","a","x"," ","c","a","s","e","@","#"," ","¥","%","%","%","…","1","2","3","账","号"]}
[W3C] Calling AppiumDriver.setValue() with args: [["i","p","h","o","n","e"," ","x","s"," ","m","a","x"," ","c","a","s","e","@","#"," ","¥","%","%","%","…","1","2","3","账","号"],"32000000-0000-0000-5F01-000000000000","47716845-cf37-411f-ab68-ac2be8546fef"]
[XCUITest] Executing command 'setValue'

暂无回复。
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册