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

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                # Selenium 向下滾動 > 原文: [https://pythonbasics.org/selenium_scroll_down/](https://pythonbasics.org/selenium_scroll_down/) 您是否希望 Selenium 瀏覽器滾動到頁面末尾? 您可以使用代碼,確切地說是 javascript 代碼。 加載網頁后,您可能需要向下滾動。您可以向下滾動特定數量或一直向下滾動到底部。 ## Selenium 向下滾動 ### 示例 Selenium 向下滾動代碼如下所示。 它使用 javascript 校準方法`execute_script()`,以滾動到網頁的末尾。 ```py #_*_coding: utf-8_*_ from selenium import webdriver import time browser=webdriver.Firefox() browser.get("https://en.wikipedia.org") browser.execute_script("window.scrollTo(0,document.body.scrollHeight)") time.sleep(3) browser.close() ``` ![selenium scroll down](https://img.kancloud.cn/d5/ba/d5bafe2f7a678d0c3425c7575dceb2c3_1366x737.jpg) [下載示例](https://gum.co/GjuJxo)
                  <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>

                              哎呀哎呀视频在线观看