话不多说,先直接上代码
import time
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import openpyxl
wb = openpyxl.load_workbook('文件路径')
sh = wb['Sheet1']//工作簿名称
driver = webdriver.Chrome()
driver.implicitly_wait(2) # 设置隐式等待时间
driver.get("")