<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>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                ## Android 'UIScrollable' 滑動: 技巧和竅門 盡管Appium不允許你直接使用'UIScrollable'的所有能力,但可以通過忽略錯誤的技巧來充分利用'UIScrollable'的能力。 ### 向前滾動 ```java // scrollForward (精確滑動一個視圖) try { driver.findElement(MobileBy.AndroidUIAutomator( "new UiScrollable(new UiSelector().scrollable(true)).scrollForward()")); } catch (InvalidSelectorException e) { // ignore } // flingForward (快速滑動) try { driver.findElement(MobileBy.AndroidUIAutomator( "new UiScrollable(new UiSelector().scrollable(true)).flingForward()")); } catch (InvalidSelectorException e) { // ignore } ``` ### 向后滾動 ```java // scrollBackward (精確滑動一個視圖) try { driver.findElement(MobileBy.AndroidUIAutomator( "new UiScrollable(new UiSelector().scrollable(true)).scrollBackward()")); } catch (InvalidSelectorException e) { // ignore } // flingBackward (快速滑動) try { driver.findElement(MobileBy.AndroidUIAutomator( "new UiScrollable(new UiSelector().scrollable(true)).flingBackward()")); } catch (InvalidSelectorException e) { // ignore } ``` ### 滑到開始位置 ```java // scrollToBeginning (每次滑動一個視圖,最多滑10次) try { driver.findElement(MobileBy.AndroidUIAutomator( "new UiScrollable(new UiSelector().scrollable(true)).scrollToBeginning(10)")); } catch (InvalidSelectorException e) { // ignore } // flingToBeginning (快速滑動,最多滑10次) try { driver.findElement(MobileBy.AndroidUIAutomator( "new UiScrollable(new UiSelector().scrollable(true)).flingToBeginning(10)")); } catch (InvalidSelectorException e) { // ignore } ``` ### 滑到結束位置 ```java // scrollToEnd (每次滑動一個視圖,最多滑10次) try { driver.findElement(MobileBy.AndroidUIAutomator( "new UiScrollable(new UiSelector().scrollable(true)).scrollToEnd(10)")); } catch (InvalidSelectorException e) { // ignore } // flingToEnd (快速滑動,最多滑10次) try { driver.findElement(MobileBy.AndroidUIAutomator( "new UiScrollable(new UiSelector().scrollable(true)).flingToEnd(10)")); } catch (InvalidSelectorException e) { // ignore } ```
                  <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>

                              哎呀哎呀视频在线观看