Appium 运行到查找元素直到超时,就给报`org.openqa.selenium.remote.UnreachableBrowserException`

sini · 2018年06月07日 · 最后由 sini 回复于 2018年06月07日 · 1753 次阅读

之前都能正常运行的,但是今天一运行到这儿就直接卡住,然后就报这个

  1. appium : 1.8.1
  2. xcode: 9.3.1
  3. iOS 设备:11.3
org.openqa.selenium.remote.UnreachableBrowserException: Error communicating with the remote browser. It may have died.
Build info: version: '2.53.1', revision: 'a36b8b1cd5757287168e54b817830adce9b0158d', time: '2016-06-30 19:26:09'
System info: host: 'binlis-Mac-mini.local', ip: '192.168.1.153', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.13.4', java.version: '1.8.0_77'
Driver info: driver.version: AppiumDriver
Capabilities [{app=/Users/libin/.jenkins/workspace/test/apps/rlterm3.app, networkConnectionEnabled=false, noReset=true, clearSystemFiles=true, databaseEnabled=false, deviceName=autotest, launchTimeout=500000, platform=MAC, wdaLocalPort=8002, newCommandTimeout=21600, platformVersion=10.3.0, webStorageEnabled=false, locationContextEnabled=false, automationName=XCuiTest, useNewWDA=true, browserName=, takesScreenshot=true, javascriptEnabled=true, udid=c140b1130dba410a13f2e769ef0379670e4b64fa, platformName=iOS}]
Session ID: 053f390d-773c-4f5b-b3aa-e06c4afd5257
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:665)
    at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:40)
    at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1)
    at io.appium.java_client.ios.IOSDriver.execute(IOSDriver.java:1)
    at org.openqa.selenium.remote.RemoteWebDriver.findElements(RemoteWebDriver.java:388)
    at io.appium.java_client.DefaultGenericMobileDriver.findElements(DefaultGenericMobileDriver.java:48)
    at io.appium.java_client.AppiumDriver.findElements(AppiumDriver.java:195)
    at org.openqa.selenium.remote.RemoteWebDriver.findElementsByName(RemoteWebDriver.java:469)
    at io.appium.java_client.DefaultGenericMobileDriver.findElementsByName(DefaultGenericMobileDriver.java:108)
    at io.appium.java_client.AppiumDriver.findElementsByName(AppiumDriver.java:215)
    at org.openqa.selenium.By$ByName.findElements(By.java:295)
    at org.openqa.selenium.remote.RemoteWebDriver.findElements(RemoteWebDriver.java:351)
    at io.appium.java_client.DefaultGenericMobileDriver.findElements(DefaultGenericMobileDriver.java:44)
    at io.appium.java_client.AppiumDriver.findElements(AppiumDriver.java:191)
    at io.appium.java_client.pagefactory.bys.ContentMappedBy.findElements(ContentMappedBy.java:36)
    at org.openqa.selenium.remote.RemoteWebDriver.findElements(RemoteWebDriver.java:351)
    at io.appium.java_client.DefaultGenericMobileDriver.findElements(DefaultGenericMobileDriver.java:44)
    at io.appium.java_client.AppiumDriver.findElements(AppiumDriver.java:191)
    at io.appium.java_client.pagefactory.AppiumElementLocator$WaitingFunction.apply(AppiumElementLocator.java:154)
    at io.appium.java_client.pagefactory.AppiumElementLocator$WaitingFunction.apply(AppiumElementLocator.java:1)
    at org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:238)
    at io.appium.java_client.pagefactory.AppiumElementLocator.waitFor(AppiumElementLocator.java:88)
    at io.appium.java_client.pagefactory.AppiumElementLocator.findElements(AppiumElementLocator.java:125)
    at io.appium.java_client.pagefactory.interceptors.InterceptorOfAListOfElements.intercept(InterceptorOfAListOfElements.java:50)
    at $java.util.ArrayList$$EnhancerByCGLIB$$c0a2d785.size(<generated>)
    at rl.ipos.stepDefinition.SalesModify.SalesModifyDefinition2.salesModifyRecordDetailCellBtnClick(SalesModifyDefinition2.java:1190)
    at rl.ipos.stepDefinition.TestCases.SaleAndCustomerMangeTestCases.salesModifyRecordDetailCellBtnClick(SaleAndCustomerMangeTestCases.java:862)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at cucumber.runtime.Utils$1.call(Utils.java:40)
    at cucumber.runtime.Timeout.timeout(Timeout.java:16)
    at cucumber.runtime.Utils.invoke(Utils.java:34)
    at cucumber.runtime.java.JavaStepDefinition.execute(JavaStepDefinition.java:38)
    at cucumber.runtime.StepDefinitionMatch.runStep(StepDefinitionMatch.java:37)
    at cucumber.runtime.Runtime.runStep(Runtime.java:300)
    at cucumber.runtime.model.StepContainer.runStep(StepContainer.java:44)
    at cucumber.runtime.model.StepContainer.runSteps(StepContainer.java:39)
    at cucumber.runtime.model.CucumberScenario.run(CucumberScenario.java:44)
    at cucumber.runtime.model.CucumberFeature.run(CucumberFeature.java:165)
    at cucumber.runtime.Runtime.run(Runtime.java:122)
    at cucumber.api.cli.Main.run(Main.java:36)
    at cucumber.api.cli.Main.main(Main.java:18)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
Caused by: org.openqa.selenium.WebDriverException: org.apache.http.NoHttpResponseException: 127.0.0.1:4779 failed to respond
Build info: version: '2.53.1', revision: 'a36b8b1cd5757287168e54b817830adce9b0158d', time: '2016-06-30 19:26:09'
System info: host: 'binlis-Mac-mini.local', ip: '192.168.1.153', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.13.4', java.version: '1.8.0_77'
Driver info: driver.version: AppiumDriver
    at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:84)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:644)
    ... 48 more
Caused by: org.apache.http.NoHttpResponseException: 127.0.0.1:4779 failed to respond
    at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:143)
    at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:57)
    at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:261)
    at org.apache.http.impl.DefaultBHttpClientConnection.receiveResponseHeader(DefaultBHttpClientConnection.java:165)
    at org.apache.http.impl.conn.CPoolProxy.receiveResponseHeader(CPoolProxy.java:167)
    at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:272)
    at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:124)
    at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:271)
    at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184)
    at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88)
    at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
    at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:71)
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55)
    at org.openqa.selenium.remote.internal.ApacheHttpClient.fallBackExecute(ApacheHttpClient.java:162)
    at org.openqa.selenium.remote.internal.ApacheHttpClient.execute(ApacheHttpClient.java:90)
    at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:142)
    at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:69)
    ... 49 more

appium 日志

[HTTP] <-- POST /wd/hub/session/053f390d-773c-4f5b-b3aa-e06c4afd5257/elements 200 9235 ms - 74
[HTTP] 
[HTTP] --> POST /wd/hub/session/053f390d-773c-4f5b-b3aa-e06c4afd5257/timeouts
[HTTP] {"type":"implicit","ms":1000}
[debug] [MJSONWP] Calling AppiumDriver.timeouts() with args: [{"protocol":"MJSONWP","type":"implicit","ms":1000},"053f390d-773c-4f5b-b3aa-e06c4afd5257"]
[debug] [XCUITest] Executing command 'timeouts'
[debug] [BaseDriver] type: implicit, ms: 1000
[debug] [BaseDriver] Set implicit wait to 1000ms
[debug] [MJSONWP] Responding to client with driver.timeouts() result: null
[HTTP] <-- POST /wd/hub/session/053f390d-773c-4f5b-b3aa-e06c4afd5257/timeouts 200 7 ms - 76
[HTTP] 
[HTTP] --> POST /wd/hub/session/053f390d-773c-4f5b-b3aa-e06c4afd5257/timeouts
[HTTP] {"type":"implicit","ms":0}
[debug] [MJSONWP] Calling AppiumDriver.timeouts() with args: [{"protocol":"MJSONWP","type":"implicit","ms":0},"053f390d-773c-4f5b-b3aa-e06c4afd5257"]
[debug] [XCUITest] Executing command 'timeouts'
[debug] [BaseDriver] type: implicit, ms: 0
[debug] [BaseDriver] Set implicit wait to 0ms
[debug] [MJSONWP] Responding to client with driver.timeouts() result: null
[HTTP] <-- POST /wd/hub/session/053f390d-773c-4f5b-b3aa-e06c4afd5257/timeouts 200 6 ms - 76
[HTTP] 
[HTTP] --> GET /wd/hub/session/053f390d-773c-4f5b-b3aa-e06c4afd5257/context
[HTTP] {}
[debug] [MJSONWP] Calling AppiumDriver.getCurrentContext() with args: ["053f390d-773c-4f5b-b3aa-e06c4afd5257"]
[debug] [XCUITest] Executing command 'getCurrentContext'
[debug] [MJSONWP] Responding to client with driver.getCurrentContext() result: "NATIVE_APP"
[HTTP] <-- GET /wd/hub/session/053f390d-773c-4f5b-b3aa-e06c4afd5257/context 200 4 ms - 84
[HTTP] 
[HTTP] --> POST /wd/hub/session/053f390d-773c-4f5b-b3aa-e06c4afd5257/elements
[HTTP] {"using":"name","value":"sales_modify_selected_filter_condition_dealTime"}
[debug] [MJSONWP] Calling AppiumDriver.findElements() with args: ["name","sales_modify_selected_filter_condition_dealTime","053f390d-773c-4f5b-b3aa-e06c4afd5257"]
[debug] [XCUITest] Executing command 'findElements'
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, name, class name, -ios predicate string, -ios class chain, accessibility id
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [JSONWP Proxy] Proxying [POST /elements] to [POST http://localhost:8002/session/562257A8-121F-4E47-92BC-74EB79A1B276/elements] with body: {"using":"name","value":"sales_modify_selected_filter_condition_dealTime"}
[debug] [JSONWP Proxy] Got response with status 200: {"value":[{"ELEMENT":"771F0000-0000-0000-5A01-000000000000"}],"sessionId":"562257A8-121F-4E47-92BC-74EB79A1B276","status":0}
[debug] [MJSONWP] Responding to client with driver.findElements() result: [{"ELEMENT":"771F0000-0000-0000-5A01-000000000000"}]
[HTTP] <-- POST /wd/hub/session/053f390d-773c-4f5b-b3aa-e06c4afd5257/elements 200 8499 ms - 124
[HTTP] 
[HTTP] --> POST /wd/hub/session/053f390d-773c-4f5b-b3aa-e06c4afd5257/timeouts
[HTTP] {"type":"implicit","ms":1000}
[debug] [MJSONWP] Calling AppiumDriver.timeouts() with args: [{"protocol":"MJSONWP","type":"implicit","ms":1000},"053f390d-773c-4f5b-b3aa-e06c4afd5257"]
[debug] [XCUITest] Executing command 'timeouts'
[debug] [BaseDriver] type: implicit, ms: 1000
[debug] [BaseDriver] Set implicit wait to 1000ms
[debug] [MJSONWP] Responding to client with driver.timeouts() result: null
[HTTP] <-- POST /wd/hub/session/053f390d-773c-4f5b-b3aa-e06c4afd5257/timeouts 200 4 ms - 76
[HTTP] 
[HTTP] --> GET /wd/hub/session/053f390d-773c-4f5b-b3aa-e06c4afd5257/element/771F0000-0000-0000-5A01-000000000000/attribute/visible
[HTTP] {}
[debug] [MJSONWP] Calling AppiumDriver.getAttribute() with args: ["visible","771F0000-0000-0000-5A01-000000000000","053f390d-773c-4f5b-b3aa-e06c4afd5257"]
[debug] [XCUITest] Executing command 'getAttribute'
[debug] [JSONWP Proxy] Proxying [GET /element/771F0000-0000-0000-5A01-000000000000/attribute/visible] to [GET http://localhost:8002/session/562257A8-121F-4E47-92BC-74EB79A1B276/element/771F0000-0000-0000-5A01-000000000000/attribute/visible] with no body
[debug] [JSONWP Proxy] Got response with status 200: "{\n  \"value\" : true,\n  \"sessionId\" : \"562257A8-121F-4E47-92BC-74EB79A1B276\",\n  \"status\" : 0\n}"
[debug] [MJSONWP] Responding to client with driver.getAttribute() result: "true"
[HTTP] <-- GET /wd/hub/session/053f390d-773c-4f5b-b3aa-e06c4afd5257/element/771F0000-0000-0000-5A01-000000000000/attribute/visible 200 6433 ms - 78
[HTTP] 
[HTTP] --> POST /wd/hub/session/053f390d-773c-4f5b-b3aa-e06c4afd5257/timeouts
[HTTP] {"type":"implicit","ms":0}
[debug] [MJSONWP] Calling AppiumDriver.timeouts() with args: [{"protocol":"MJSONWP","type":"implicit","ms":0},"053f390d-773c-4f5b-b3aa-e06c4afd5257"]
[debug] [XCUITest] Executing command 'timeouts'
[debug] [BaseDriver] type: implicit, ms: 0
[debug] [BaseDriver] Set implicit wait to 0ms
[debug] [MJSONWP] Responding to client with driver.timeouts() result: null
[HTTP] <-- POST /wd/hub/session/053f390d-773c-4f5b-b3aa-e06c4afd5257/timeouts 200 4 ms - 76
[HTTP] 
[HTTP] --> GET /wd/hub/session/053f390d-773c-4f5b-b3aa-e06c4afd5257/context
[HTTP] {}
[debug] [MJSONWP] Calling AppiumDriver.getCurrentContext() with args: ["053f390d-773c-4f5b-b3aa-e06c4afd5257"]
[debug] [XCUITest] Executing command 'getCurrentContext'
[debug] [MJSONWP] Responding to client with driver.getCurrentContext() result: "NATIVE_APP"
[HTTP] <-- GET /wd/hub/session/053f390d-773c-4f5b-b3aa-e06c4afd5257/context 200 4 ms - 84
[HTTP] 
[HTTP] --> POST /wd/hub/session/053f390d-773c-4f5b-b3aa-e06c4afd5257/elements
[HTTP] {"using":"name","value":"sales_modify_selected_filter_condition_dealTime"}
[debug] [MJSONWP] Calling AppiumDriver.findElements() with args: ["name","sales_modify_selected_filter_condition_dealTime","053f390d-773c-4f5b-b3aa-e06c4afd5257"]
[debug] [XCUITest] Executing command 'findElements'
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, name, class name, -ios predicate string, -ios class chain, accessibility id
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [JSONWP Proxy] Proxying [POST /elements] to [POST http://localhost:8002/session/562257A8-121F-4E47-92BC-74EB79A1B276/elements] with body: {"using":"name","value":"sales_modify_selected_filter_condition_dealTime"}
-[debug] [JSONWP Proxy] Got response with status 200: {"value":[{"ELEMENT":"771F0000-0000-0000-5A01-000000000000"}],"sessionId":"562257A8-121F-4E47-92BC-74EB79A1B276","status":0}
[debug] [MJSONWP] Responding to client with driver.findElements() result: [{"ELEMENT":"771F0000-0000-0000-5A01-000000000000"}]
[HTTP] <-- POST /wd/hub/session/053f390d-773c-4f5b-b3aa-e06c4afd5257/elements 200 8474 ms - 124
[HTTP] 
[HTTP] --> POST /wd/hub/session/053f390d-773c-4f5b-b3aa-e06c4afd5257/timeouts
[HTTP] {"type":"implicit","ms":1000}
[debug] [MJSONWP] Calling AppiumDriver.timeouts() with args: [{"protocol":"MJSONWP","type":"implicit","ms":1000},"053f390d-773c-4f5b-b3aa-e06c4afd5257"]
[debug] [XCUITest] Executing command 'timeouts'
[debug] [BaseDriver] type: implicit, ms: 1000
[debug] [BaseDriver] Set implicit wait to 1000ms
[debug] [MJSONWP] Responding to client with driver.timeouts() result: null
[HTTP] <-- POST /wd/hub/session/053f390d-773c-4f5b-b3aa-e06c4afd5257/timeouts 200 6 ms - 76
[HTTP] 
[HTTP] --> POST /wd/hub/session/053f390d-773c-4f5b-b3aa-e06c4afd5257/element/771F0000-0000-0000-5A01-000000000000/elements
[HTTP] {"id":"771F0000-0000-0000-5A01-000000000000","using":"accessibility id","value":"取引時間"}
[debug] [MJSONWP] Calling AppiumDriver.findElementsFromElement() with args: ["accessibility id","取引時間","771F0000-0000-0000-5A01-000000000000","053f390d-773c-4f5b-b3aa-e06c4afd5257"]
[debug] [XCUITest] Executing command 'findElementsFromElement'
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, name, class name, -ios predicate string, -ios class chain, accessibility id
[debug] [BaseDriver] Waiting up to 1000 ms for condition
[debug] [JSONWP Proxy] Proxying [POST /element/771F0000-0000-0000-5A01-000000000000/elements] to [POST http://localhost:8002/session/562257A8-121F-4E47-92BC-74EB79A1B276/element/771F0000-0000-0000-5A01-000000000000/elements] with body: {"using":"accessibility id","value":"取引時間"}
[debug] [JSONWP Proxy] Got response with status 200: {"value":[{"ELEMENT":"BA220000-0000-0000-5A01-000000000000"}],"sessionId":"562257A8-121F-4E47-92BC-74EB79A1B276","status":0}
[debug] [MJSONWP] Responding to client with driver.findElementsFromElement() result: [{"ELEMENT":"BA220000-0000-0000-5A01-000000000000"}]
[HTTP] <-- POST /wd/hub/session/053f390d-773c-4f5b-b3aa-e06c4afd5257/element/771F0000-0000-0000-5A01-000000000000/elements 200 12613 ms - 124
[HTTP] 
[HTTP] --> GET /wd/hub/session/053f390d-773c-4f5b-b3aa-e06c4afd5257/element/BA220000-0000-0000-5A01-000000000000/displayed
[HTTP] {}
[MJSONWP] Driver proxy active, passing request on via HTTP proxy
[debug] [XCUITest] Executing command 'proxyReqRes'
[debug] [JSONWP Proxy] Proxying [GET /wd/hub/session/053f390d-773c-4f5b-b3aa-e06c4afd5257/element/BA220000-0000-0000-5A01-000000000000/displayed] to [GET http://localhost:8002/session/562257A8-121F-4E47-92BC-74EB79A1B276/element/BA220000-0000-0000-5A01-000000000000/displayed] with body: {}
[debug] [JSONWP Proxy] Got response with status 200: "{\n  \"value\" : true,\n  \"sessionId\" : \"562257A8-121F-4E47-92BC-74EB79A1B276\",\n  \"status\" : 0\n}"
[JSONWP Proxy] Replacing sessionId 562257A8-121F-4E47-92BC-74EB79A1B276 with 053f390d-773c-4f5b-b3aa-e06c4afd5257
[HTTP] <-- GET /wd/hub/session/053f390d-773c-4f5b-b3aa-e06c4afd5257/element/BA220000-0000-0000-5A01-000000000000/displayed 200 9518 ms - 76
[HTTP] 
[HTTP] --> POST /wd/hub/session/053f390d-773c-4f5b-b3aa-e06c4afd5257/timeouts
[HTTP] {"type":"implicit","ms":0}
[debug] [MJSONWP] Calling AppiumDriver.timeouts() with args: [{"protocol":"MJSONWP","type":"implicit","ms":0},"053f390d-773c-4f5b-b3aa-e06c4afd5257"]
[debug] [XCUITest] Executing command 'timeouts'
[debug] [BaseDriver] type: implicit, ms: 0
[debug] [BaseDriver] Set implicit wait to 0ms
[debug] [MJSONWP] Responding to client with driver.timeouts() result: null
[HTTP] <-- POST /wd/hub/session/053f390d-773c-4f5b-b3aa-e06c4afd5257/timeouts 200 5 ms - 76
[HTTP] 
[HTTP] --> GET /wd/hub/session/053f390d-773c-4f5b-b3aa-e06c4afd5257/context
[HTTP] {}
[debug] [MJSONWP] Calling AppiumDriver.getCurrentContext() with args: ["053f390d-773c-4f5b-b3aa-e06c4afd5257"]
[debug] [XCUITest] Executing command 'getCurrentContext'
[debug] [MJSONWP] Responding to client with driver.getCurrentContext() result: "NATIVE_APP"
[HTTP] <-- GET /wd/hub/session/053f390d-773c-4f5b-b3aa-e06c4afd5257/context 200 4 ms - 84
[HTTP] 
[HTTP] --> POST /wd/hub/session/053f390d-773c-4f5b-b3aa-e06c4afd5257/elements
[HTTP] {"using":"name","value":"sales_modify_record_detail_cell"}
[debug] [MJSONWP] Calling AppiumDriver.findElements() with args: ["name","sales_modify_record_detail_cell","053f390d-773c-4f5b-b3aa-e06c4afd5257"]
[debug] [XCUITest] Executing command 'findElements'
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, name, class name, -ios predicate string, -ios class chain, accessibility id
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [JSONWP Proxy] Proxying [POST /elements] to [POST http://localhost:8002/session/562257A8-121F-4E47-92BC-74EB79A1B276/elements] with body: {"using":"name","value":"sales_modify_record_detail_cell"}
[HTTP] <-- POST /wd/hub/session/053f390d-773c-4f5b-b3aa-e06c4afd5257/elements - - ms - -
[HTTP] 
[HTTP] --> POST /wd/hub/session/053f390d-773c-4f5b-b3aa-e06c4afd5257/elements
[HTTP] {"using":"name","value":"sales_modify_record_detail_cell"}
[debug] [MJSONWP] Calling AppiumDriver.findElements() with args: ["name","sales_modify_record_detail_cell","053f390d-773c-4f5b-b3aa-e06c4afd5257"]
[debug] [XCUITest] Executing command 'findElements'
[debug] [JSONWP Proxy] Got response with status 200: {"value":[{"ELEMENT":"ED1E0000-0000-0000-5A01-000000000000"},{"ELEMENT":"F61E0000-0000-0000-5A01-000000000000"},{"ELEMENT":"F71E0000-0000-0000-5A01-000000000000"},{"ELEMENT":"F81E0000-0000-0000-5A01-000000000000"},{"ELEMENT":"F91E0000-0000-0000-5A01-000000000000"},{"ELEMENT":"FA1E0000-0000-0000-5A01-000000000000"},{"ELEMENT":"FB1E0000-0000-0000-5A01-000000000000"},{"ELEMENT":"FC1E0000-0000-0000-5A01-000000000000"},{"ELEMENT":"FD1E0000-0000-0000-5A01-000000000000"},{"ELEMENT":"FE1E0000-0000-0000-5A01-000000000000"},{"ELEMENT":"FF1E0000-0000-0000-5A01-000000000000"},{"ELEMENT":"001F0000-0000-0000-5A01-000000000000"},{"ELEMENT":"011F0000-0000-0000-5A01-000000000000"},{"ELEMENT":"021F0000-0000-0000-5A01-000000000000"},{"ELEMENT":"031F0000-0000-0000-5A01-000000000000"},{"ELEMENT":"041F0000-0000-0000-5A01-000000000000"},{"ELEMENT":"051F0000-0000-0000-5A01-000000000000"},{"ELEMENT":"061F0000-0000-0000-5A01-000000000000"},{"ELEMENT":"071F0000-0000-0000-5A01-000000000000"},{"ELEMENT":"081F0000-0000-0000-5A01-000000...
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, name, class name, -ios predicate string, -ios class chain, accessibility id
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [JSONWP Proxy] Proxying [POST /elements] to [POST http://localhost:8002/session/562257A8-121F-4E47-92BC-74EB79A1B276/elements] with body: {"using":"name","value":"sales_modify_record_detail_cell"}
[debug] [MJSONWP] Responding to client with driver.findElements() result: [{"ELEMENT":"ED1E0000-0000-0000-5A01-000000000000"},{"ELEMENT":"F61E0000-0000-0000-5A01-000000000000"},{"ELEMENT":"F71E0000-0000-0000-5A01-000000000000"},{"ELEMENT":"F81E0000-0000-0000-5A01-000000000000"},{"ELEMENT":"F91E0000-0000-0000-5A01-000000000000"},{"ELEMENT":"FA1E0000-0000-0000-5A01-000000000000"},{"ELEMENT":"FB1E0000-0000-0000-5A01-000000000000"},{"ELEMENT":"FC1E0000-0000-0000-5A01-000000000000"},{"ELEMENT":"FD1E0000-0000-0000-5A01-000000000000"},{"ELEMENT":"FE1E0000-0000-0000-5A01-000000000000"},{"ELEMENT":"FF1E0000-0000-0000-5A01-000000000000"},{"ELEMENT":"001F0000-0000-0000-5A01-000000000000"},{"ELEMENT":"011F0000-0000-0000-5A01-000000000000"},{"ELEMENT":"021F0000-0000-0000-5A01-000000000000"},{"ELEMENT":"031F0000-0000-0000-5A01-000000000000"},{"ELEMENT":"041F0000-0000-0000-5A01-000000000000"},{"ELEMENT":"051F0000-0000-0000-5A01-000000000000"},{"ELEMENT":"061F0000-0000-0000-5A01-000000000000"},{"ELEMENT":"071F0000-0000-0000-5A01-000000000000"},{"ELEMENT":"081F0000-0000-0000-5A01-000000000000"},...
[HTTP] <-- POST /wd/hub/session/053f390d-773c-4f5b-b3aa-e06c4afd5257/elements - - ms - -
[HTTP] 
[HTTP] --> POST /wd/hub/session/053f390d-773c-4f5b-b3aa-e06c4afd5257/timeouts
[HTTP] {"type":"implicit","ms":1000}
[debug] [MJSONWP] Calling AppiumDriver.timeouts() with args: [{"protocol":"MJSONWP","type":"implicit","ms":1000},"053f390d-773c-4f5b-b3aa-e06c4afd5257"]
[debug] [XCUITest] Executing command 'timeouts'
[debug] [JSONWP Proxy] Got response with status 200: {"value":[{"ELEMENT":"ED1E0000-0000-0000-5A01-000000000000"},{"ELEMENT":"F61E0000-0000-0000-5A01-000000000000"},{"ELEMENT":"F71E0000-0000-0000-5A01-000000000000"},{"ELEMENT":"F81E0000-0000-0000-5A01-000000000000"},{"ELEMENT":"F91E0000-0000-0000-5A01-000000000000"},{"ELEMENT":"FA1E0000-0000-0000-5A01-000000000000"},{"ELEMENT":"FB1E0000-0000-0000-5A01-000000000000"},{"ELEMENT":"FC1E0000-0000-0000-5A01-000000000000"},{"ELEMENT":"FD1E0000-0000-0000-5A01-000000000000"},{"ELEMENT":"FE1E0000-0000-0000-5A01-000000000000"},{"ELEMENT":"FF1E0000-0000-0000-5A01-000000000000"},{"ELEMENT":"001F0000-0000-0000-5A01-000000000000"},{"ELEMENT":"011F0000-0000-0000-5A01-000000000000"},{"ELEMENT":"021F0000-0000-0000-5A01-000000000000"},{"ELEMENT":"031F0000-0000-0000-5A01-000000000000"},{"ELEMENT":"041F0000-0000-0000-5A01-000000000000"},{"ELEMENT":"051F0000-0000-0000-5A01-000000000000"},{"ELEMENT":"061F0000-0000-0000-5A01-000000000000"},{"ELEMENT":"071F0000-0000-0000-5A01-000000000000"},{"ELEMENT":"081F0000-0000-0000-5A01-000000...
[debug] [BaseDriver] type: implicit, ms: 1000
[debug] [BaseDriver] Set implicit wait to 1000ms
[debug] [MJSONWP] Responding to client with driver.findElements() result: [{"ELEMENT":"ED1E0000-0000-0000-5A01-000000000000"},{"ELEMENT":"F61E0000-0000-0000-5A01-000000000000"},{"ELEMENT":"F71E0000-0000-0000-5A01-000000000000"},{"ELEMENT":"F81E0000-0000-0000-5A01-000000000000"},{"ELEMENT":"F91E0000-0000-0000-5A01-000000000000"},{"ELEMENT":"FA1E0000-0000-0000-5A01-000000000000"},{"ELEMENT":"FB1E0000-0000-0000-5A01-000000000000"},{"ELEMENT":"FC1E0000-0000-0000-5A01-000000000000"},{"ELEMENT":"FD1E0000-0000-0000-5A01-000000000000"},{"ELEMENT":"FE1E0000-0000-0000-5A01-000000000000"},{"ELEMENT":"FF1E0000-0000-0000-5A01-000000000000"},{"ELEMENT":"001F0000-0000-0000-5A01-000000000000"},{"ELEMENT":"011F0000-0000-0000-5A01-000000000000"},{"ELEMENT":"021F0000-0000-0000-5A01-000000000000"},{"ELEMENT":"031F0000-0000-0000-5A01-000000000000"},{"ELEMENT":"041F0000-0000-0000-5A01-000000000000"},{"ELEMENT":"051F0000-0000-0000-5A01-000000000000"},{"ELEMENT":"061F0000-0000-0000-5A01-000000000000"},{"ELEMENT":"071F0000-0000-0000-5A01-000000000000"},{"ELEMENT":"081F0000-0000-0000-5A01-000000000000"},...
[debug] [MJSONWP] Responding to client with driver.timeouts() result: null
[HTTP] <-- POST /wd/hub/session/053f390d-773c-4f5b-b3aa-e06c4afd5257/timeouts 200 118173 ms - 76
[HTTP] 
[HTTP] --> GET /wd/hub/session/053f390d-773c-4f5b-b3aa-e06c4afd5257/screenshot
[HTTP] {}

共收到 2 条回复 时间 点赞
sini #1 · 2018年06月07日 Author

问题是换了一台设备又能正常运行了。这个是啥问题呢?

sini #2 · 2018年06月07日 Author

https://testerhome.com/notes/1624
这个是详细的日志

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