selenium:from selenium import webdriver 安装:pip install seleniumtime:import time等待时间:from selenium.webdriver.support.wait import WebDriverWait 等待条件:from selenium.webdriver.support import expected_conditions as EC 表明定位类型:from selenium.webdriver.common.by import By 鼠标操作:from selenium.webdriver.common.action_chains import ActionChainsselect元素下拉框:from selenium.webdriver.support.select import Select按键操作:from selenium.webdriver.common.keys import Keys上传文件: import win32gui import win32con 安装:pip install pypiwin32
原文地址:https://www.cnblogs.com/minghong/p/11013489.html
时间: 2024-10-07 00:06:27