首页 > 其他 > 详细

tap/click on search button on softkeyboard

时间:2015-09-01 10:33:52      阅读:212      评论:0      收藏:0      [点我收藏+]
    1. driver.sendKeyEvent(84);
      Appium says it successfully sent in the command but ‘search‘ does not get tapped. Cursor remains in text box and results do not filter.

    2. HashMap swipeObject = new HashMap();
      swipeObject.put("keycode", 84);
      ((JavascriptExecutor ) driver).executeScript("mobile: keyevent", swipeObject);
      Appium says not yet implemented.

    3. JavascriptExecutor jse = (JavascriptExecutor) driver1; jse.executeScript("UIATarget.localTarget().frontMostApp().keyboard().buttons()[‘Done‘].tap();");
      Appium says not yet implemented.

    4. driver.sendKeyEvent(AndroidKeyCode.ENTER, AndroidKeyMetastate.META_FUNCTION_ON);
      Appium says it successfully sent in the command but ‘search‘ does not get tapped. Cursor remains in text box and results do not filter.

    5. driver.sendKeyEvent(AndroidKeyCode.ENTER);
      Nothing happens

tap/click on search button on softkeyboard

原文:http://www.cnblogs.com/jingwei/p/4774933.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!