欢迎来到魔幻小生的博客

摘要: 直接等待 强制等待,线程休眠一定时间。一般在调试/演示代码时才使用。 缺点:无法准确把握需要等待的时间。设置过长浪费时间,设置过短没有作用。 time.sleep(3) 例子: import time from selenium import webdriver from selenium.webd 阅读全文
posted @ 2025-03-17 23:25 魔幻小生 阅读(35) 评论(0) 推荐(0)
摘要: 简介 Selenium 支持 web 浏览器的自动化。主要由三个工具构成:WebDriver, IDE, Grid。 官方网站:https://www.selenium.dev/ 安装 pip install selenium 如果使用旧版 selenium,需要去镜像网站下载 Driver: ht 阅读全文
posted @ 2025-03-17 21:49 魔幻小生 阅读(73) 评论(0) 推荐(0)