这是源码
from selenium import webdriver
import pyautogui
from time import sleep
def test2():
driver = webdriver.Chrome()
driver.get('http://www.jpress.io/user/register')
# driver.maximize_window()
sleep(3)
e = driver.find_element_by_id('agree')
rect = e.rect
print(rect)
# 460, 950
pyautogui.click(rect['x']+10, rect['y']+130)
# pyautogui.click()
sleep(3)