from selenium import webdriver
from time import sleep
'''
操作链接:
1、点击
'''
driver = webdriver.Chrome()
driver.get('https://www.baidu.com/')
ele = driver.find_element_by_link_text('新闻')
ele.click()
sleep(3)
driver.quit()
2023-10-06 19:15:40
from selenium import webdriver
from time import sleep
'''
操作链接:
1、点击
'''
driver = webdriver.Chrome()
driver.get('https://www.baidu.com/')
ele = driver.find_element_by_link_text('新闻')
ele.click()
sleep(3)
driver.quit()