appium 加了 'unicodeKeyboard':True, 'resetKeyboard':True 后,登录时输入框输入手机号缺失了一部分,求解???
输入框显示部分输入,尝试了 clear 后在 send_keys 仍然没有完整输入传入的值
appium 版本:1.4.16
夜神模拟器

info: [debug] Set Android implicit wait to 2000ms
info: [debug] Responding to client with success: {"status":0,"value":null,"sessionId":"6ba4882d-19e3-4df0-8daf-dda40187c176"}
info: <-- POST /wd/hub/session/6ba4882d-19e3-4df0-8daf-dda40187c176/timeouts/implicit_wait 200 1.649 ms - 76 {"status":0,"value":null,"sessionId":"6ba4882d-19e3-4df0-8daf-dda40187c176"}
info: --> POST /wd/hub/session/6ba4882d-19e3-4df0-8daf-dda40187c176/element/9/value {"text":"18700000003","sessionId":"6ba4882d-19e3-4df0-8daf-dda40187c176","id":"9","value":["1","8","7","0","0","0","0","0","0","0","3"]}
info: [debug] Pushing command to appium work queue: ["element:setText",{"elementId":"9","text":"18700000003","replace":false,"unicodeKeyboard":true}]
info: [debug] [BOOTSTRAP] [debug] Got data from client: {"cmd":"action","action":"element:setText","params":{"elementId":"9","text":"18700000003","replace":false,"unicodeKeyboard":true}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: setText
info: [debug] [BOOTSTRAP] [debug] Using element passed in.
info: [debug] [BOOTSTRAP] [debug] Attempting to clear using UiObject.clearText().
info: [debug] [BOOTSTRAP] [debug] Text remains after clearing, but it appears to be hint text.
info: [debug] [BOOTSTRAP] [debug] Text not cleared. Assuming remainder is hint text.
info: [debug] [BOOTSTRAP] [debug] Sending plain text to element: 18700000003
info: [debug] Responding to client with success: {"status":0,"value":true,"sessionId":"6ba4882d-19e3-4df0-8daf-dda40187c176"}
info: <-- POST /wd/hub/session/6ba4882d-19e3-4df0-8daf-dda40187c176/element/9/value 200 4685.991 ms - 76 {"status":0,"value":true,"sessionId":"6ba4882d-19e3-4df0-8daf-dda40187c176"}
info: [debug] [BOOTSTRAP] [debug] Returning result: {"value":true,"status":0}
info: --> POST /wd/hub/session/6ba4882d-19e3-4df0-8daf-dda40187c176/element {"using":"id","sessionId":"6ba4882d-19e3-4df0-8daf-dda40187c176","value":"com.bench.yylc.test54321:id/yyinput_edittext"}
info: [debug] Waiting up to 2000ms for condition
info: [debug] Pushing command to appium work queue: ["find",{"strategy":"id","selector":"com.bench.yylc.test54321:id/yyinput_edittext","context":"","multiple":false}]
info: [debug] [BOOTSTRAP] [debug] Got data from client: {"cmd":"action","action":"find","params":{"strategy":"id","selector":"com.bench.yylc.test54321:id/yyinput_edittext","context":"","multiple":false}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: find
info: [debug] [BOOTSTRAP] [debug] Finding com.bench.yylc.test54321:id/yyinput_edittext using ID with the contextId: multiple: false
info: [debug] [BOOTSTRAP] [debug] Using: UiSelector[INSTANCE=0, RESOURCE_ID=com.bench.yylc.test54321:id/yyinput_edittext]
info: [debug] Responding to client with success: {"status":0,"value":{"ELEMENT":"10"},"sessionId":"6ba4882d-19e3-4df0-8daf-dda40187c176"}
info: <-- POST /wd/hub/session/6ba4882d-19e3-4df0-8daf-dda40187c176/element 200 782.183 ms - 88 {"status":0,"value":{"ELEMENT":"10"},"sessionId":"6ba4882d-19e3-4df0-8daf-dda40187c176"}
info: [debug] [BOOTSTRAP] [debug] Returning result: {"value":{"ELEMENT":"10"},"status":0}
info: --> POST /wd/hub/session/6ba4882d-19e3-4df0-8daf-dda40187c176/timeouts/implicit_wait {"sessionId":"6ba4882d-19e3-4df0-8daf-dda40187c176","ms":2000}
info: [debug] Set Android implicit wait to 2000ms
info: [debug] Responding to client with success: {"status":0,"value":null,"sessionId":"6ba4882d-19e3-4df0-8daf-dda40187c176"}
info: <-- POST /wd/hub/session/6ba4882d-19e3-4df0-8daf-dda40187c176/timeouts/implicit_wait 200 0.790 ms - 76 {"status":0,"value":null,"sessionId":"6ba4882d-19e3-4df0-8daf-dda40187c176"}
info: --> GET /wd/hub/session/6ba4882d-19e3-4df0-8daf-dda40187c176/element/10/text {}
info: [debug] Pushing command to appium work queue: ["element:getText",{"elementId":"10"}]
info: [debug] [BOOTSTRAP] [debug] Got data from client: {"cmd":"action","action":"element:getText","params":{"elementId":"10"}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: getText
info: [debug] [BOOTSTRAP] [debug] Returning result: {"value":"10","status":0}
info: [debug] Responding to client with success: {"status":0,"value":"10","sessionId":"6ba4882d-19e3-4df0-8daf-dda40187c176"}
info: <-- GET /wd/hub/session/6ba4882d-19e3-4df0-8daf-dda40187c176/element/10/text 200 13.008 ms - 76 {"status":0,"value":"10","sessionId":"6ba4882d-19e3-4df0-8daf-dda40187c176"}
info: --> POST /wd/hub/session/6ba4882d-19e3-4df0-8daf-dda40187c176/element {"using":"id","sessionId":"6ba4882d-19e3-4df0-8daf-dda40187c176","value":"com.bench.yylc.test54321:id/yyinput_edittext"}
info: [debug] Waiting up to 2000ms for condition
info: [debug] Pushing command to appium work queue: ["find",{"strategy":"id","selector":"com.bench.yylc.test54321:id/yyinput_edittext","context":"","multiple":false}]
info: [debug] [BOOTSTRAP] [debug] Got data from client: {"cmd":"action","action":"find","params":{"strategy":"id","selector":"com.bench.yylc.test54321:id/yyinput_edittext","context":"","multiple":false}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: find
info: [debug] [BOOTSTRAP] [debug] Finding com.bench.yylc.test54321:id/yyinput_edittext using ID with the contextId: multiple: false
info: [debug] [BOOTSTRAP] [debug] Using: UiSelector[INSTANCE=0, RESOURCE_ID=com.bench.yylc.test54321:id/yyinput_edittext]
info: [debug] [BOOTSTRAP] [debug] Returning result: {"value":{"ELEMENT":"11"},"status":0}
info: [debug] Responding to client with success: {"status":0,"value":{"ELEMENT":"11"},"sessionId":"6ba4882d-19e3-4df0-8daf-dda40187c176"}
info: <-- POST /wd/hub/session/6ba4882d-19e3-4df0-8daf-dda40187c176/element 200 6.439 ms - 88 {"status":0,"value":{"ELEMENT":"11"},"sessionId":"6ba4882d-19e3-4df0-8daf-dda40187c176"}
info: --> POST /wd/hub/session/6ba4882d-19e3-4df0-8daf-dda40187c176/timeouts/implicit_wait {"sessionId":"6ba4882d-19e3-4df0-8daf-dda40187c176","ms":2000}
info: [debug] Set Android implicit wait to 2000ms
info: [debug] Responding to client with success: {"status":0,"value":null,"sessionId":"6ba4882d-19e3-4df0-8daf-dda40187c176"}
info: <-- POST /wd/hub/session/6ba4882d-19e3-4df0-8daf-dda40187c176/timeouts/implicit_wait 200 1.753 ms - 76 {"status":0,"value":null,"sessionId":"6ba4882d-19e3-4df0-8daf-dda40187c176"}
info: --> POST /wd/hub/session/6ba4882d-19e3-4df0-8daf-dda40187c176/element/11/clear {"sessionId":"6ba4882d-19e3-4df0-8daf-dda40187c176","id":"11"}
info: [debug] Pushing command to appium work queue: ["element:clear",{"elementId":"11"}]
info: [debug] [BOOTSTRAP] [debug] Got data from client: {"cmd":"action","action":"element:clear","params":{"elementId":"11"}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: clear
info: [debug] [BOOTSTRAP] [debug] Attempting to clear using UiObject.clearText().
info: [debug] Responding to client with success: {"status":0,"value":true,"sessionId":"6ba4882d-19e3-4df0-8daf-dda40187c176"}
info: <-- POST /wd/hub/session/6ba4882d-19e3-4df0-8daf-dda40187c176/element/11/clear 200 3816.386 ms - 76 {"status":0,"value":true,"sessionId":"6ba4882d-19e3-4df0-8daf-dda40187c176"}
info: [debug] [BOOTSTRAP] [debug] Text remains after clearing, but it appears to be hint text.
info: [debug] [BOOTSTRAP] [debug] Returning result: {"value":true,"status":0}
info: --> POST /wd/hub/session/6ba4882d-19e3-4df0-8daf-dda40187c176/element {"using":"id","sessionId":"6ba4882d-19e3-4df0-8daf-dda40187c176","value":"com.bench.yylc.test54321:id/yyinput_edittext"}
info: [debug] Waiting up to 2000ms for condition
info: [debug] Pushing command to appium work queue: ["find",{"strategy":"id","selector":"com.bench.yylc.test54321:id/yyinput_edittext","context":"","multiple":false}]
info: [debug] [BOOTSTRAP] [debug] Got data from client: {"cmd":"action","action":"find","params":{"strategy":"id","selector":"com.bench.yylc.test54321:id/yyinput_edittext","context":"","multiple":false}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: find
info: [debug] [BOOTSTRAP] [debug] Finding com.bench.yylc.test54321:id/yyinput_edittext using ID with the contextId: multiple: false
info: [debug] [BOOTSTRAP] [debug] Using: UiSelector[INSTANCE=0, RESOURCE_ID=com.bench.yylc.test54321:id/yyinput_edittext]
info: [debug] [BOOTSTRAP] [debug] Returning result: {"value":{"ELEMENT":"12"},"status":0}
info: [debug] Responding to client with success: {"status":0,"value":{"ELEMENT":"12"},"sessionId":"6ba4882d-19e3-4df0-8daf-dda40187c176"}
info: <-- POST /wd/hub/session/6ba4882d-19e3-4df0-8daf-dda40187c176/element 200 5.236 ms - 88 {"status":0,"value":{"ELEMENT":"12"},"sessionId":"6ba4882d-19e3-4df0-8daf-dda40187c176"}
info: --> POST /wd/hub/session/6ba4882d-19e3-4df0-8daf-dda40187c176/timeouts/implicit_wait {"sessionId":"6ba4882d-19e3-4df0-8daf-dda40187c176","ms":2000}
info: [debug] Set Android implicit wait to 2000ms
info: [debug] Responding to client with success: {"status":0,"value":null,"sessionId":"6ba4882d-19e3-4df0-8daf-dda40187c176"}
info: <-- POST /wd/hub/session/6ba4882d-19e3-4df0-8daf-dda40187c176/timeouts/implicit_wait 200 0.607 ms - 76 {"status":0,"value":null,"sessionId":"6ba4882d-19e3-4df0-8daf-dda40187c176"}
info: --> POST /wd/hub/session/6ba4882d-19e3-4df0-8daf-dda40187c176/element/12/click {"sessionId":"6ba4882d-19e3-4df0-8daf-dda40187c176","id":"12"}
info: [debug] Pushing command to appium work queue: ["element:click",{"elementId":"12"}]
info: [debug] [BOOTSTRAP] [debug] Got data from client: {"cmd":"action","action":"element:click","params":{"elementId":"12"}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: click
info: [debug] [BOOTSTRAP] [debug] Returning result: {"value":true,"status":0}
info: [debug] Responding to client with success: {"status":0,"value":true,"sessionId":"6ba4882d-19e3-4df0-8daf-dda40187c176"}
info: <-- POST /wd/hub/session/6ba4882d-19e3-4df0-8daf-dda40187c176/element/12/click 200 3126.248 ms - 76 {"status":0,"value":true,"sessionId":"6ba4882d-19e3-4df0-8daf-dda40187c176"}
info: --> POST /wd/hub/session/6ba4882d-19e3-4df0-8daf-dda40187c176/element {"using":"id","sessionId":"6ba4882d-19e3-4df0-8daf-dda40187c176","value":"com.bench.yylc.test54321:id/yyinput_edittext"}
info: [debug] Waiting up to 2000ms for condition
info: [debug] Pushing command to appium work queue: ["find",{"strategy":"id","selector":"com.bench.yylc.test54321:id/yyinput_edittext","context":"","multiple":false}]
info: [debug] [BOOTSTRAP] [debug] Got data from client: {"cmd":"action","action":"find","params":{"strategy":"id","selector":"com.bench.yylc.test54321:id/yyinput_edittext","context":"","multiple":false}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: find
info: [debug] [BOOTSTRAP] [debug] Finding com.bench.yylc.test54321:id/yyinput_edittext using ID with the contextId: multiple: false
info: [debug] [BOOTSTRAP] [debug] Using: UiSelector[INSTANCE=0, RESOURCE_ID=com.bench.yylc.test54321:id/yyinput_edittext]
info: [debug] Responding to client with success: {"status":0,"value":{"ELEMENT":"13"},"sessionId":"6ba4882d-19e3-4df0-8daf-dda40187c176"}
info: <-- POST /wd/hub/session/6ba4882d-19e3-4df0-8daf-dda40187c176/element 200 7.949 ms - 88 {"status":0,"value":{"ELEMENT":"13"},"sessionId":"6ba4882d-19e3-4df0-8daf-dda40187c176"}
info: [debug] [BOOTSTRAP] [debug] Returning result: {"value":{"ELEMENT":"13"},"status":0}
info: --> POST /wd/hub/session/6ba4882d-19e3-4df0-8daf-dda40187c176/timeouts/implicit_wait {"sessionId":"6ba4882d-19e3-4df0-8daf-dda40187c176","ms":2000}
info: [debug] Set Android implicit wait to 2000ms
info: [debug] Responding to client with success: {"status":0,"value":null,"sessionId":"6ba4882d-19e3-4df0-8daf-dda40187c176"}
info: <-- POST /wd/hub/session/6ba4882d-19e3-4df0-8daf-dda40187c176/timeouts/implicit_wait 200 0.671 ms - 76 {"status":0,"value":null,"sessionId":"6ba4882d-19e3-4df0-8daf-dda40187c176"}
info: --> POST /wd/hub/session/6ba4882d-19e3-4df0-8daf-dda40187c176/element/13/value {"text":"18700000003","sessionId":"6ba4882d-19e3-4df0-8daf-dda40187c176","id":"13","value":["1","8","7","0","0","0","0","0","0","0","3"]}
info: [debug] Pushing command to appium work queue: ["element:setText",{"elementId":"13","text":"18700000003","replace":false,"unicodeKeyboard":true}]
info: [debug] [BOOTSTRAP] [debug] Got data from client: {"cmd":"action","action":"element:setText","params":{"elementId":"13","text":"18700000003","replace":false,"unicodeKeyboard":true}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: setText
info: [debug] [BOOTSTRAP] [debug] Using element passed in.
info: [debug] [BOOTSTRAP] [debug] Attempting to clear using UiObject.clearText().
info: [debug] [BOOTSTRAP] [debug] Text remains after clearing, but it appears to be hint text.
info: [debug] [BOOTSTRAP] [debug] Text not cleared. Assuming remainder is hint text.
info: [debug] [BOOTSTRAP] [debug] Sending plain text to element: 18700000003
info: [debug] Responding to client with success: {"status":0,"value":true,"sessionId":"6ba4882d-19e3-4df0-8daf-dda40187c176"}
info: <-- POST /wd/hub/session/6ba4882d-19e3-4df0-8daf-dda40187c176/element/13/value 200 5245.167 ms - 76 {"status":0,"value":true,"sessionId":"6ba4882d-19e3-4df0-8daf-dda40187c176"}
info: [debug] [BOOTSTRAP] [debug] Returning result: {"value":true,"status":0}


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