zoukankan      html  css  js  c++  java
  • tap/click on search button on softkeyboard

      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

  • 相关阅读:
    Flask基础01
    Django logging配置
    JSONP和CORS跨域
    Scrapy框架
    请求库之urllib,requests及工具selenium
    MongoDB安装
    Django 视图层
    Django REST framework 2
    WebSocket
    爬虫性能相关
  • 原文地址:https://www.cnblogs.com/jingwei/p/4774933.html
Copyright © 2011-2022 走看看