1.新建 class login(Page),用By.ID,By.NAME,By.LINK_TEXT,By.XPATH等方式定位各个元素,代码如下。 from selenium.webdriver.common.action_chains import ActionChains from selenium.webdriver.common.by import By import sys sys.path.append("C:\\Users\\uni-ubi\\PycharmProjects\\TEST\\WebAuto\\test_cas...