| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 
 | from selenium import webdriverfrom selenium.webdriver import ActionChains
 from time import sleep
 dr = webdriver.Edge()
 
 dr.get('https://www.baidu.com')
 dr.maximize_window()
 
 def click_locxy(dr, x, y):
 ActionChains(dr).move_by_offset(x, y).click().perform()
 ActionChains(dr).move_by_offset(-x, -y).perform()
 
 sleep(5)
 click_locxy(dr, 640, 400)
 sleep(5)
 
 |