<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                ## iOS 'mobile:': 屏幕滑動(swipe) XCTest框架支持獨特的動作操作如"mobile:scroll" 和 "mobile:swipe"。它們不如UIScrollable那么靈活但仍然有用。 更多信息參考[https://developer.apple.com/documentation/xctest/xcuielement]() 文檔中'Scrolling' 和 'Performing Gestures' 部分. 通常滑動(swipe)操作完成滑動的動作而滾動(scroll)操作只是嘗試更改可見視圖而已。 !注意! 滾動方向在滑動(swipe)命令和滾動(scroll)命令中是不同的 ```java /** * Performs screen scroll * * @param dir the direction of scroll * @version java-client: 7.3.0 **/ public void mobileScrollScreenIOS(Direction dir) { System.out.println("mobileScrollScreenIOS(): dir: '" + dir + "'"); // always log your actions // Animation default time: // - iOS: 200 ms // final value depends on your app and could be greater final int ANIMATION_TIME = 200; // ms final HashMap<String, String> scrollObject = new HashMap<String, String>(); switch (dir) { case DOWN: // from down to up (! differs from mobile:swipe) scrollObject.put("direction", "down"); break; case UP: // from up to down (! differs from mobile:swipe) scrollObject.put("direction", "up"); break; case LEFT: // from left to right (! differs from mobile:swipe) scrollObject.put("direction", "left"); break; case RIGHT: // from right to left (! differs from mobile:swipe) scrollObject.put("direction", "right"); break; default: throw new IllegalArgumentException("mobileScrollIOS(): dir: '" + dir + "' NOT supported"); } try { driver.executeScript("mobile:scroll", scrollObject); // swipe faster then scroll Thread.sleep(ANIMATION_TIME); // always allow swipe action to complete } catch (Exception e) { System.err.println("mobileScrollIOS(): FAILED\n" + e.getMessage()); return; } } /** * Performs screen swipe * * @param dir the direction of swipe * @version java-client: 7.3.0 **/ public void mobileSwipeScreenIOS(Direction dir) { System.out.println("mobileSwipeScreenIOS(): dir: '" + dir + "'"); // always log your actions // Animation default time: // - iOS: 200 ms // final value depends on your app and could be greater final int ANIMATION_TIME = 200; // ms final HashMap<String, String> scrollObject = new HashMap<String, String>(); switch (dir) { case DOWN: // from up to down (! differs from mobile:scroll) scrollObject.put("direction", "down"); break; case UP: // from down to up (! differs from mobile:scroll) scrollObject.put("direction", "up"); break; case LEFT: // from right to left (! differs from mobile:scroll) scrollObject.put("direction", "left"); break; case RIGHT: // from left to right (! differs from mobile:scroll) scrollObject.put("direction", "right"); break; default: throw new IllegalArgumentException("mobileSwipeScreenIOS(): dir: '" + dir + "' NOT supported"); } try { driver.executeScript("mobile:swipe", scrollObject); Thread.sleep(ANIMATION_TIME); // always allow swipe action to complete } catch (Exception e) { System.err.println("mobileSwipeScreenIOS(): FAILED\n" + e.getMessage()); return; } } ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看