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

sini · 2017年07月19日 · 最后由 sini 回复于 2017年10月09日 · 2306 次阅读

问题

元素为 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 条回复 时间 点赞
恒温 将本帖设为了精华贴 07月26日 11:31

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

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

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

恒温 回复

这个精华帖是什么情况😅

心向东 回复

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

sini #10 · 2017年09月11日 Author
恒温 回复

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

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

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

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

sini #1 · 2017年10月09日 Author
wallerson 回复

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

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