from selenium import webdriver
driver.find_element_by_xpath("//*[contains(text(),'登录')]/../button ").click()
xpath通过按钮名称找到按钮
最新推荐文章于 2024-09-24 15:44:36 发布
from selenium import webdriver
driver.find_element_by_xpath("//*[contains(text(),'登录')]/../button ").click()