Appium 点击文本框,键盘没有表示

kuki_sini · 发布于 2017年07月19日 · 最后由 kuki_sini 回复于 2017年10月09日 · 1244 次阅读

问题

元素为 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,暂时没有回应。大家也有遇到这种情况吗?

环境

  • Appium version (or git revision) that exhibits the issue: Appium v1.6.5
  • Desktop OS/version used to run Appium: macOS 10.12.5
  • Node.js version (unless using Appium.app|exe):v6.6.0
  • Mobile platform/version under test:iOS SDK Version set to '10.3'
  • Real device or emulator/simulator:Real device

日志


[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 

共收到 12 条回复
110 Lihuazhang 将本帖设为了精华贴 07月26日 11:31
110

难得看到如此漂亮的报问题的文章!

110

唤不起输入法的问题,比较难排查。你在手动执行的时候 输入法唤起有问题不?

6853

生平最害怕appium 的日志,超长

6233
110Lihuazhang 回复

这个精华帖是什么情况😅

110
6233dongdong 回复

最近的提问帖子里最遵守规则的一个。

Ca2e63
kuki_sini · #10 · 2017年09月11日 作者
110Lihuazhang 回复

手动是完全可以唤醒键盘的,可就是运行自动化的时候不行

我去github也问过大神了,就说是WDA的问题

110 Lihuazhang 取消了精华贴 09月11日 14:36
Bdc231
请在模拟器设置的键盘选项中设置键盘属性

82b94a

我也遇到了这个问题。但是我是有时会报错,有时不会,楼主解决了吗?

Ca2e63
kuki_sini · #14 · 2017年10月09日 作者
82b94awallerson 回复

目前没有再次遇到此问题,现使用的Appium版本v1.6.6-beta.3

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