selenium将垂直滑动条往下拉
时间: 2023-09-10 10:11:15 浏览: 90
要使用selenium将垂直滑动条往下拉,你可以使用以下代码:
self.driver.execute_script("window.scrollTo(0,document.body.scrollHeight);")
这段代码将会滑动页面的滚动条到达底部。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* *3* [python + selenium + chrome 如何操作滚动条](https://blog.csdn.net/zwq912318834/article/details/79262007)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 100%"]
[ .reference_list ]
阅读全文