拿网易邮箱来举例:from selenium import webdriver
from selenium.webdriver.common.by import By
url = "https://mail.126.com//"dr.get(url)dr.maximize_window()如:定位所有的a标签,并打印出a标签中对应的文本aa = dr.find_elements(By.TAG_NAME,"a")for i in aa: print(i.text)