随笔分类 - Selenium自动化
摘要:元素定位 在Selenium中,定位需要导入By模块 from selenium.webdriver.common.by import By id定位,find_element(By.ID,'id的值') name定位,find_element(By.NAME,'name的值') class定位,f
阅读全文
posted @ 2022-08-01 15:58
三木三木大三木
摘要:浏览器下载 谷歌浏览器下载 火狐浏览器下载 安装与浏览器对应版本的驱动 谷歌驱动下载 火狐驱动下载 将驱动解压放进Path环境变量中 解压后得到的谷歌驱动chromedriver.exe,火狐驱动geckodriver.exe,移动至Python安装目录即可 在Python中安装Selenium模块
阅读全文
posted @ 2022-08-01 08:49
三木三木大三木
浙公网安备 33010602011771号