码迷,mamicode.com
首页 > 其他好文 > 详细

tap/click on search button on softkeyboard

时间:2015-09-01 10:36:38      阅读:139      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!