问题

元素为 XCUIElementTypeTextField 的元素命名为 IDInput ,针对这个元素,怎么操作,都不能执行点击操作

makerObject.IDInput.click();
makerObject.IDInput.sendKeys("");
makerObject.IDInput.clear();

除了click(),也使用了其他的操作`:

  1. mobile: tap
  2. tap

我本机有 2 个 Appiums

  1. npm Appium: v1.6.5 didn't work

  2. desktop Appium : v1.6.4 work well

然后,怀疑是因为 appium 版本问题导致。所以卸载了npm Appium: v1.6.5,重新安装npm Appium: v1.6.4,很遗憾结果任然是不能正常操作
问题也报告了https://github.com/facebook/WebDriverAgent/issues/656,暂时没有回应。大家也有遇到这种情况吗?

环境

日志


[MJSONWP] Driver proxy active, passing request on via HTTP proxy
[debug] [XCUITest] Executing command 'proxyReqRes'
[debug] [JSONWP Proxy] Proxying [GET /wd/hub/session/b45ef79e-e203-4c5b-80f6-0a93381be596/element/E27799E9-8480-4F71-9E80-8F3FFD6EF93A/text] to [GET http://localhost:8100/session/80DECF29-097D-4284-9A70-E7C96664E6ED/element/E27799E9-8480-4F71-9E80-8F3FFD6EF93A/text] with body: {}
[debug] [JSONWP Proxy] Got response with status 200: "{\n  \"value\" : \"520\",\n  \"sessionId\" : \"80DECF29-097D-4284-9A70-E7C96664E6ED\",\n  \"status\" : 0\n}"
[JSONWP Proxy] Replacing sessionId 80DECF29-097D-4284-9A70-E7C96664E6ED with b45ef79e-e203-4c5b-80f6-0a93381be596
[HTTP] <-- GET /wd/hub/session/b45ef79e-e203-4c5b-80f6-0a93381be596/element/E27799E9-8480-4F71-9E80-8F3FFD6EF93A/text 200 1539 ms - 77 
[HTTP] --> POST /wd/hub/session/b45ef79e-e203-4c5b-80f6-0a93381be596/timeouts {"type":"implicit","ms":0}
[debug] [MJSONWP] Calling AppiumDriver.timeouts() with args: ["implicit",0,"b45ef79e-e203-4c5b-80f6-0a93381be596"]
[debug] [XCUITest] Executing command 'timeouts'
[debug] [BaseDriver] Set implicit wait to 0ms
[debug] [MJSONWP] Responding to client with driver.timeouts() result: null
[HTTP] <-- POST /wd/hub/session/b45ef79e-e203-4c5b-80f6-0a93381be596/timeouts 200 3 ms - 76 
[HTTP] --> GET /wd/hub/session/b45ef79e-e203-4c5b-80f6-0a93381be596/context {}
[debug] [MJSONWP] Calling AppiumDriver.getCurrentContext() with args: ["b45ef79e-e203-4c5b-80f6-0a93381be596"]
[debug] [XCUITest] Executing command 'getCurrentContext'
[debug] [MJSONWP] Responding to client with driver.getCurrentContext() result: "NATIVE_APP"
[HTTP] <-- GET /wd/hub/session/b45ef79e-e203-4c5b-80f6-0a93381be596/context 200 2 ms - 84 
[HTTP] --> POST /wd/hub/session/b45ef79e-e203-4c5b-80f6-0a93381be596/elements {"using":"xpath","value":"//*[1]//*[1]//*[1]//*[1]//*[1]//*[1]//*[3]//*[2]//*[1]//*[22]//*[2]"}
[debug] [MJSONWP] Calling AppiumDriver.findElements() with args: ["xpath","//*[1]//*[1]//*[1]//*[1]//*[1]//*[1]//*[3]//*[2]//*[1]//*[22]//*[2]","b45ef79e-e203-4c5b-80f6-0a93381be596"]
[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:8100/session/80DECF29-097D-4284-9A70-E7C96664E6ED/elements] with body: {"using":"xpath","value":"//*[1]//*[1]//*[1]//*[1]//*[1]//*[1]//*[3]//*[2]//*[1]//*[22]//*[2]"}
[debug] [JSONWP Proxy] Got response with status 200: {"value":[{"ELEMENT":"385ED0D7-D8C8-4294-8B16-60B5FFBEA127","type":"XCUIElementTypeTextField","label":""}],"sessionId":"80DECF29-097D-4284-9A70-E7C96664E6ED","status":0}
[debug] [MJSONWP] Responding to client with driver.findElements() result: [{"ELEMENT":"385ED0D7-D8C8-4294-8B16-60B5FFBEA127","type":"XCUIElementTypeTextField","label":""}]
[HTTP] <-- POST /wd/hub/session/b45ef79e-e203-4c5b-80f6-0a93381be596/elements 200 13972 ms - 169 
[HTTP] --> POST /wd/hub/session/b45ef79e-e203-4c5b-80f6-0a93381be596/timeouts {"type":"implicit","ms":1000}
[debug] [MJSONWP] Calling AppiumDriver.timeouts() with args: ["implicit",1000,"b45ef79e-e203-4c5b-80f6-0a93381be596"]
[debug] [XCUITest] Executing command 'timeouts'
[debug] [BaseDriver] Set implicit wait to 1000ms
[debug] [MJSONWP] Responding to client with driver.timeouts() result: null
[HTTP] <-- POST /wd/hub/session/b45ef79e-e203-4c5b-80f6-0a93381be596/timeouts 200 3 ms - 76 
[HTTP] --> POST /wd/hub/session/b45ef79e-e203-4c5b-80f6-0a93381be596/element/385ED0D7-D8C8-4294-8B16-60B5FFBEA127/click {"id":"385ED0D7-D8C8-4294-8B16-60B5FFBEA127"}
[MJSONWP] Driver proxy active, passing request on via HTTP proxy
[debug] [XCUITest] Executing command 'proxyReqRes'
[debug] [JSONWP Proxy] Proxying [POST /wd/hub/session/b45ef79e-e203-4c5b-80f6-0a93381be596/element/385ED0D7-D8C8-4294-8B16-60B5FFBEA127/click] to [POST http://localhost:8100/session/80DECF29-097D-4284-9A70-E7C96664E6ED/element/385ED0D7-D8C8-4294-8B16-60B5FFBEA127/click] with body: {"id":"385ED0D7-D8C8-4294-8B16-60B5FFBEA127"}
[debug] [JSONWP Proxy] Got response with status 200: {"status":0,"id":"385ED0D7-D8C8-4294-8B16-60B5FFBEA127","value":"","sessionId":"80DECF29-097D-4284-9A70-E7C96664E6ED"}
[JSONWP Proxy] Replacing sessionId 80DECF29-097D-4284-9A70-E7C96664E6ED with b45ef79e-e203-4c5b-80f6-0a93381be596
[HTTP] <-- POST /wd/hub/session/b45ef79e-e203-4c5b-80f6-0a93381be596/element/385ED0D7-D8C8-4294-8B16-60B5FFBEA127/click 200 2515 ms - 118 
[HTTP] --> POST /wd/hub/session/b45ef79e-e203-4c5b-80f6-0a93381be596/timeouts {"type":"implicit","ms":0}
[debug] [MJSONWP] Calling AppiumDriver.timeouts() with args: ["implicit",0,"b45ef79e-e203-4c5b-80f6-0a93381be596"]
[debug] [XCUITest] Executing command 'timeouts'
[debug] [BaseDriver] Set implicit wait to 0ms
[debug] [MJSONWP] Responding to client with driver.timeouts() result: null
[HTTP] <-- POST /wd/hub/session/b45ef79e-e203-4c5b-80f6-0a93381be596/timeouts 200 3 ms - 76 
[HTTP] --> GET /wd/hub/session/b45ef79e-e203-4c5b-80f6-0a93381be596/context {}
[debug] [MJSONWP] Calling AppiumDriver.getCurrentContext() with args: ["b45ef79e-e203-4c5b-80f6-0a93381be596"]
[debug] [XCUITest] Executing command 'getCurrentContext'
[debug] [MJSONWP] Responding to client with driver.getCurrentContext() result: "NATIVE_APP"
[HTTP] <-- GET /wd/hub/session/b45ef79e-e203-4c5b-80f6-0a93381be596/context 200 2 ms - 84 
[HTTP] --> POST /wd/hub/session/b45ef79e-e203-4c5b-80f6-0a93381be596/elements {"using":"xpath","value":"//*[1]//*[1]//*[1]//*[1]//*[1]//*[1]//*[3]//*[2]//*[1]//*[22]//*[2]"}
[debug] [MJSONWP] Calling AppiumDriver.findElements() with args: ["xpath","//*[1]//*[1]//*[1]//*[1]//*[1]//*[1]//*[3]//*[2]//*[1]//*[22]//*[2]","b45ef79e-e203-4c5b-80f6-0a93381be596"]
[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:8100/session/80DECF29-097D-4284-9A70-E7C96664E6ED/elements] with body: {"using":"xpath","value":"//*[1]//*[1]//*[1]//*[1]//*[1]//*[1]//*[3]//*[2]//*[1]//*[22]//*[2]"}
[debug] [JSONWP Proxy] Got response with status 200: {"value":[{"ELEMENT":"B5A75442-03ED-4DDA-8D0D-9D94F03ABD2A","type":"XCUIElementTypeTextField","label":""}],"sessionId":"80DECF29-097D-4284-9A70-E7C96664E6ED","status":0}
[debug] [MJSONWP] Responding to client with driver.findElements() result: [{"ELEMENT":"B5A75442-03ED-4DDA-8D0D-9D94F03ABD2A","type":"XCUIElementTypeTextField","label":""}]
[HTTP] <-- POST /wd/hub/session/b45ef79e-e203-4c5b-80f6-0a93381be596/elements 200 16539 ms - 169 
[HTTP] --> POST /wd/hub/session/b45ef79e-e203-4c5b-80f6-0a93381be596/timeouts {"type":"implicit","ms":1000}
[debug] [MJSONWP] Calling AppiumDriver.timeouts() with args: ["implicit",1000,"b45ef79e-e203-4c5b-80f6-0a93381be596"]
[debug] [XCUITest] Executing command 'timeouts'
[debug] [BaseDriver] Set implicit wait to 1000ms
[debug] [MJSONWP] Responding to client with driver.timeouts() result: null
[HTTP] <-- POST /wd/hub/session/b45ef79e-e203-4c5b-80f6-0a93381be596/timeouts 200 4 ms - 76 
[HTTP] --> POST /wd/hub/session/b45ef79e-e203-4c5b-80f6-0a93381be596/element/B5A75442-03ED-4DDA-8D0D-9D94F03ABD2A/value {"id":"B5A75442-03ED-4DDA-8D0D-9D94F03ABD2A","value":[""]}
[debug] [MJSONWP] Calling AppiumDriver.setValue() with args: [[""],"B5A75442-03ED-4DDA-8D0D-9D94F03ABD2A","b45ef79e-e203-4c5b-80f6-0a93381be596"]
[debug] [XCUITest] Executing command 'setValue'
[debug] [JSONWP Proxy] Proxying [POST /element/B5A75442-03ED-4DDA-8D0D-9D94F03ABD2A/value] to [POST http://localhost:8100/session/80DECF29-097D-4284-9A70-E7C96664E6ED/element/B5A75442-03ED-4DDA-8D0D-9D94F03ABD2A/value] with body: {"value":[]}
[debug] [JSONWP Proxy] Got response with status 200: {"value":"Error Domain=com.facebook.WebDriverAgent Code=1 \"Keyboard is not present\" UserInfo={NSLocalizedDescription=Keyboard is not present}","sessionId":"80DECF29-097D-4284-9A70-E7C96664E6ED","status":13}
[debug] [JSONWP Proxy] Proxying [GET /element/B5A75442-03ED-4DDA-8D0D-9D94F03ABD2A/attribute/type] to [GET http://localhost:8100/session/80DECF29-097D-4284-9A70-E7C96664E6ED/element/B5A75442-03ED-4DDA-8D0D-9D94F03ABD2A/attribute/type] with no body
[debug] [JSONWP Proxy] Got response with status 200: "{\n  \"value\" : \"XCUIElementTypeTextField\",\n  \"sessionId\" : \"80DECF29-097D-4284-9A70-E7C96664E6ED\",\n  \"status\" : 0\n}"
[XCUITest] Cannot type in the text field because of UnknownError: An unknown server-side error occurred while processing the command. Original error: Error Domain=com.facebook.WebDriverAgent Code=1 "Keyboard is not present" UserInfo={NSLocalizedDescription=Keyboard is not present}.
Trying to apply a workaround...
[debug] [BaseDriver] Set implicit wait to 0ms
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8100/session/80DECF29-097D-4284-9A70-E7C96664E6ED/element] with body: {"using":"class name","value":"XCUIElementTypeKeyboard"}
[debug] [JSONWP Proxy] Got response with status 200: {"value":{"using":"class name","value":"XCUIElementTypeKeyboard","description":"unable to find an element"},"sessionId":"80DECF29-097D-4284-9A70-E7C96664E6ED","status":7}
[debug] [XCUITest] No keyboard found. Clicking element to open it.
[debug] [JSONWP Proxy] Proxying [POST /element/B5A75442-03ED-4DDA-8D0D-9D94F03ABD2A/click] to [POST http://localhost:8100/session/80DECF29-097D-4284-9A70-E7C96664E6ED/element/B5A75442-03ED-4DDA-8D0D-9D94F03ABD2A/click] with body: {}
[debug] [JSONWP Proxy] Got response with status 200: {"status":0,"id":"B5A75442-03ED-4DDA-8D0D-9D94F03ABD2A","value":"","sessionId":"80DECF29-097D-4284-9A70-E7C96664E6ED"}
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8100/session/80DECF29-097D-4284-9A70-E7C96664E6ED/element] with body: {"using":"class name","value":"XCUIElementTypeKeyboard"}
[debug] [JSONWP Proxy] Got response with status 200: {"value":{"using":"class name","value":"XCUIElementTypeKeyboard","description":"unable to find an element"},"sessionId":"80DECF29-097D-4284-9A70-E7C96664E6ED","status":7}
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8100/session/80DECF29-097D-4284-9A70-E7C96664E6ED/element] with body: {"using":"class name","value":"XCUIElementTypeKeyboard"}
[debug] [JSONWP Proxy] Got response with status 200: {"value":{"using":"class name","value":"XCUIElementTypeKeyboard","description":"unable to find an element"},"sessionId":"80DECF29-097D-4284-9A70-E7C96664E6ED","status":7}
[debug] [XCUITest] No keyboard found. Clicking element to open it.
[debug] [JSONWP Proxy] Proxying [POST /element/B5A75442-03ED-4DDA-8D0D-9D94F03ABD2A/click] to [POST http://localhost:8100/session/80DECF29-097D-4284-9A70-E7C96664E6ED/element/B5A75442-03ED-4DDA-8D0D-9D94F03ABD2A/click] with body: {}
[debug] [JSONWP Proxy] Got response with status 200: {"status":0,"id":"B5A75442-03ED-4DDA-8D0D-9D94F03ABD2A","value":"","sessionId":"80DECF29-097D-4284-9A70-E7C96664E6ED"}
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8100/session/80DECF29-097D-4284-9A70-E7C96664E6ED/element] with body: {"using":"class name","value":"XCUIElementTypeKeyboard"}
[debug] [JSONWP Proxy] Got response with status 200: {"value":{"using":"class name","value":"XCUIElementTypeKeyboard","description":"unable to find an element"},"sessionId":"80DECF29-097D-4284-9A70-E7C96664E6ED","status":7}
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8100/session/80DECF29-097D-4284-9A70-E7C96664E6ED/element] with body: {"using":"class name","value":"XCUIElementTypeKeyboard"}
[debug] [JSONWP Proxy] Got response with status 200: {"value":{"using":"class name","value":"XCUIElementTypeKeyboard","description":"unable to find an element"},"sessionId":"80DECF29-097D-4284-9A70-E7C96664E6ED","status":7}
[debug] [XCUITest] No keyboard found. Clicking element to open it.
[debug] [JSONWP Proxy] Proxying [POST /element/B5A75442-03ED-4DDA-8D0D-9D94F03ABD2A/click] to [POST http://localhost:8100/session/80DECF29-097D-4284-9A70-E7C96664E6ED/element/B5A75442-03ED-4DDA-8D0D-9D94F03ABD2A/click] with body: {}
[debug] [JSONWP Proxy] Got response with status 200: {"status":0,"id":"B5A75442-03ED-4DDA-8D0D-9D94F03ABD2A","value":"","sessionId":"80DECF29-097D-4284-9A70-E7C96664E6ED"}
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8100/session/80DECF29-097D-4284-9A70-E7C96664E6ED/element] with body: {"using":"class name","value":"XCUIElementTypeKeyboard"}
[debug] [JSONWP Proxy] Got response with status 200: {"value":{"using":"class name","value":"XCUIElementTypeKeyboard","description":"unable to find an element"},"sessionId":"80DECF29-097D-4284-9A70-E7C96664E6ED","status":7}
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8100/session/80DECF29-097D-4284-9A70-E7C96664E6ED/element] with body: {"using":"class name","value":"XCUIElementTypeKeyboard"}
[debug] [JSONWP Proxy] Got response with status 200: {"value":{"using":"class name","value":"XCUIElementTypeKeyboard","description":"unable to find an element"},"sessionId":"80DECF29-097D-4284-9A70-E7C96664E6ED","status":7}
[debug] [XCUITest] No keyboard found. Clicking element to open it.
[debug] [JSONWP Proxy] Proxying [POST /element/B5A75442-03ED-4DDA-8D0D-9D94F03ABD2A/click] to [POST http://localhost:8100/session/80DECF29-097D-4284-9A70-E7C96664E6ED/element/B5A75442-03ED-4DDA-8D0D-9D94F03ABD2A/click] with body: {}
[debug] [JSONWP Proxy] Got response with status 200: {"status":0,"id":"B5A75442-03ED-4DDA-8D0D-9D94F03ABD2A","value":"","sessionId":"80DECF29-097D-4284-9A70-E7C96664E6ED"}
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8100/session/80DECF29-097D-4284-9A70-E7C96664E6ED/element] with body: {"using":"class name","value":"XCUIElementTypeKeyboard"}
[debug] [JSONWP Proxy] Got response with status 200: {"value":{"using":"class name","value":"XCUIElementTypeKeyboard","description":"unable to find an element"},"sessionId":"80DECF29-097D-4284-9A70-E7C96664E6ED","status":7}
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8100/session/80DECF29-097D-4284-9A70-E7C96664E6ED/element] with body: {"using":"class name","value":"XCUIElementTypeKeyboard"}
[debug] [JSONWP Proxy] Got response with status 200: {"value":{"using":"class name","value":"XCUIElementTypeKeyboard","description":"unable to find an element"},"sessionId":"80DECF29-097D-4284-9A70-E7C96664E6ED","status":7}
[debug] [XCUITest] No keyboard found. Clicking element to open it.
[debug] [JSONWP Proxy] Proxying [POST /element/B5A75442-03ED-4DDA-8D0D-9D94F03ABD2A/click] to [POST http://localhost:8100/session/80DECF29-097D-4284-9A70-E7C96664E6ED/element/B5A75442-03ED-4DDA-8D0D-9D94F03ABD2A/click] with body: {}
[debug] [JSONWP Proxy] Got response with status 200: {"status":0,"id":"B5A75442-03ED-4DDA-8D0D-9D94F03ABD2A","value":"","sessionId":"80DECF29-097D-4284-9A70-E7C96664E6ED"}
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8100/session/80DECF29-097D-4284-9A70-E7C96664E6ED/element] with body: {"using":"class name","value":"XCUIElementTypeKeyboard"}
[debug] [JSONWP Proxy] Got response with status 200: {"value":{"using":"class name","value":"XCUIElementTypeKeyboard","description":"unable to find an element"},"sessionId":"80DECF29-097D-4284-9A70-E7C96664E6ED","status":7}
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8100/session/80DECF29-097D-4284-9A70-E7C96664E6ED/element] with body: {"using":"class name","value":"XCUIElementTypeKeyboard"}
[debug] [JSONWP Proxy] Got response with status 200: {"value":{"using":"class name","value":"XCUIElementTypeKeyboard","description":"unable to find an element"},"sessionId":"80DECF29-097D-4284-9A70-E7C96664E6ED","status":7}
[debug] [XCUITest] No keyboard found. Clicking element to open it.
[debug] [JSONWP Proxy] Proxying [POST /element/B5A75442-03ED-4DDA-8D0D-9D94F03ABD2A/click] to [POST http://localhost:8100/session/80DECF29-097D-4284-9A70-E7C96664E6ED/element/B5A75442-03ED-4DDA-8D0D-9D94F03ABD2A/click] with body: {}
[debug] [JSONWP Proxy] Got response with status 200: {"status":0,"id":"B5A75442-03ED-4DDA-8D0D-9D94F03ABD2A","value":"","sessionId":"80DECF29-097D-4284-9A70-E7C96664E6ED"}
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8100/session/80DECF29-097D-4284-9A70-E7C96664E6ED/element] with body: {"using":"class name","value":"XCUIElementTypeKeyboard"}
[debug] [JSONWP Proxy] Got response with status 200: {"value":{"using":"class name","value":"XCUIElementTypeKeyboard","description":"unable to find an element"},"sessionId":"80DECF29-097D-4284-9A70-E7C96664E6ED","status":7}
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8100/session/80DECF29-097D-4284-9A70-E7C96664E6ED/element] with body: {"using":"class name","value":"XCUIElementTypeKeyboard"}
[debug] [JSONWP Proxy] Got response with status 200: {"value":{"using":"class name","value":"XCUIElementTypeKeyboard","description":"unable to find an element"},"sessionId":"80DECF29-097D-4284-9A70-E7C96664E6ED","status":7}
[debug] [XCUITest] No keyboard found. Clicking element to open it.
[debug] [JSONWP Proxy] Proxying [POST /element/B5A75442-03ED-4DDA-8D0D-9D94F03ABD2A/click] to [POST http://localhost:8100/session/80DECF29-097D-4284-9A70-E7C96664E6ED/element/B5A75442-03ED-4DDA-8D0D-9D94F03ABD2A/click] with body: {}
[debug] [JSONWP Proxy] Got response with status 200: {"status":0,"id":"B5A75442-03ED-4DDA-8D0D-9D94F03ABD2A","value":"","sessionId":"80DECF29-097D-4284-9A70-E7C96664E6ED"}
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8100/session/80DECF29-097D-4284-9A70-E7C96664E6ED/element] with body: {"using":"class name","value":"XCUIElementTypeKeyboard"}
[debug] [JSONWP Proxy] Got response with status 200: {"value":{"using":"class name","value":"XCUIElementTypeKeyboard","description":"unable to find an element"},"sessionId":"80DECF29-097D-4284-9A70-E7C96664E6ED","status":7}
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8100/session/80DECF29-097D-4284-9A70-E7C96664E6ED/element] with body: {"using":"class name","value":"XCUIElementTypeKeyboard"}
[debug] [JSONWP Proxy] Got response with status 200: {"value":{"using":"class name","value":"XCUIElementTypeKeyboard","description":"unable to find an element"},"sessionId":"80DECF29-097D-4284-9A70-E7C96664E6ED","status":7}
[debug] [XCUITest] No keyboard found. Clicking element to open it.
[debug] [JSONWP Proxy] Proxying [POST /element/B5A75442-03ED-4DDA-8D0D-9D94F03ABD2A/click] to [POST http://localhost:8100/session/80DECF29-097D-4284-9A70-E7C96664E6ED/element/B5A75442-03ED-4DDA-8D0D-9D94F03ABD2A/click] with body: {}
[debug] [JSONWP Proxy] Got response with status 200: {"status":0,"id":"B5A75442-03ED-4DDA-8D0D-9D94F03ABD2A","value":"","sessionId":"80DECF29-097D-4284-9A70-E7C96664E6ED"}
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8100/session/80DECF29-097D-4284-9A70-E7C96664E6ED/element] with body: {"using":"class name","value":"XCUIElementTypeKeyboard"}
[debug] [JSONWP Proxy] Got response with status 200: {"value":{"using":"class name","value":"XCUIElementTypeKeyboard","description":"unable to find an element"},"sessionId":"80DECF29-097D-4284-9A70-E7C96664E6ED","status":7}
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8100/session/80DECF29-097D-4284-9A70-E7C96664E6ED/element] with body: {"using":"class name","value":"XCUIElementTypeKeyboard"}
[debug] [JSONWP Proxy] Got response with status 200: {"value":{"using":"class name","value":"XCUIElementTypeKeyboard","description":"unable to find an element"},"sessionId":"80DECF29-097D-4284-9A70-E7C96664E6ED","status":7}
[debug] [XCUITest] No keyboard found. Clicking element to open it.
[debug] [JSONWP Proxy] Proxying [POST /element/B5A75442-03ED-4DDA-8D0D-9D94F03ABD2A/click] to [POST http://localhost:8100/session/80DECF29-097D-4284-9A70-E7C96664E6ED/element/B5A75442-03ED-4DDA-8D0D-9D94F03ABD2A/click] with body: {}
[debug] [JSONWP Proxy] Got response with status 200: {"status":0,"id":"B5A75442-03ED-4DDA-8D0D-9D94F03ABD2A","value":"","sessionId":"80DECF29-097D-4284-9A70-E7C96664E6ED"}
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8100/session/80DECF29-097D-4284-9A70-E7C96664E6ED/element] with body: {"using":"class name","value":"XCUIElementTypeKeyboard"}
[debug] [JSONWP Proxy] Got response with status 200: {"value":{"using":"class name","value":"XCUIElementTypeKeyboard","description":"unable to find an element"},"sessionId":"80DECF29-097D-4284-9A70-E7C96664E6ED","status":7}
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8100/session/80DECF29-097D-4284-9A70-E7C96664E6ED/element] with body: {"using":"class name","value":"XCUIElementTypeKeyboard"}
[debug] [JSONWP Proxy] Got response with status 200: {"value":{"using":"class name","value":"XCUIElementTypeKeyboard","description":"unable to find an element"},"sessionId":"80DECF29-097D-4284-9A70-E7C96664E6ED","status":7}
[debug] [XCUITest] No keyboard found. Clicking element to open it.
[debug] [JSONWP Proxy] Proxying [POST /element/B5A75442-03ED-4DDA-8D0D-9D94F03ABD2A/click] to [POST http://localhost:8100/session/80DECF29-097D-4284-9A70-E7C96664E6ED/element/B5A75442-03ED-4DDA-8D0D-9D94F03ABD2A/click] with body: {}
[debug] [JSONWP Proxy] Got response with status 200: {"status":0,"id":"B5A75442-03ED-4DDA-8D0D-9D94F03ABD2A","value":"","sessionId":"80DECF29-097D-4284-9A70-E7C96664E6ED"}
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8100/session/80DECF29-097D-4284-9A70-E7C96664E6ED/element] with body: {"using":"class name","value":"XCUIElementTypeKeyboard"}
[debug] [JSONWP Proxy] Got response with status 200: {"value":{"using":"class name","value":"XCUIElementTypeKeyboard","description":"unable to find an element"},"sessionId":"80DECF29-097D-4284-9A70-E7C96664E6ED","status":7}
[debug] [BaseDriver] Set implicit wait to 1000ms
[HTTP] <-- POST /wd/hub/session/b45ef79e-e203-4c5b-80f6-0a93381be596/element/B5A75442-03ED-4DDA-8D0D-9D94F03ABD2A/value 500 51204 ms - 164 


↙↙↙阅读原文可查看相关链接,并与作者交流