zoukankan      html  css  js  c++  java
  • Appium 输入 & 符号,实际输入&-

    2018-10-11 12:27:12:178 - [debug] [MJSONWP] Calling AppiumDriver.setValue() with args: [["&"],"28","43823bcd-3213-4456-a8b8-c1962cf1a76d"]
    2018-10-11 12:27:12:179 - [debug] [AndroidBootstrap] Sending command to android: {"cmd":"action","action":"element:setText","params":{"elementId":"28","text":"&","replace":false,"unicodeKeyboard":true}}
    2018-10-11 12:27:12:183 - [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"element:setText","params":{"elementId":"28","text":"&","replace":false,"unicodeKeyboard":true}}
    2018-10-11 12:27:12:183 - [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION
    2018-10-11 12:27:12:183 - [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: setText
    2018-10-11 12:27:12:183 - [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using element passed in: 28
    2018-10-11 12:27:12:205 - [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Attempting to clear using UiObject.clearText().
    2018-10-11 12:27:15:203 - [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Sending Unicode text to element: &
    2018-10-11 12:27:15:203 - [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Encoded text: &-
    2018-10-11 12:27:18:152 - [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":0,"value":true}
    2018-10-11 12:27:18:153 - [debug] [AndroidBootstrap] Received command result from bootstrap
    2018-10-11 12:27:18:153 - [debug] [MJSONWP] Responding to client with driver.setValue() result: true

    需要把如下代码去掉:

    capabilities.setCapability("unicodeKeyboard", true);

     

  • 相关阅读:
    几款开源的图形界面库(GUI Libraries)
    CMenu菜单
    开源免费的C/C++网络库(c/c++ sockets library) 七剑下天山
    基于MFC的ActiveX控件开发
    VC++中动态生成菜单技巧
    ActiveX控件打包成Cab置于网页中自动下载安装
    VC++API小查
    全面解析MFC应用程序中处理消息的顺序
    CMenu类的使用方法
    跨域单点登录实现(使用iframe)_勇敢的心_百度空间
  • 原文地址:https://www.cnblogs.com/testway/p/9771753.html
Copyright © 2011-2022 走看看