1、安装pyautogui
pip install pyautogui
2、利用pyautogui操作鼠标、通过截图定位
import pytest
import pyautogui
import os
import time
import allure
from PIL import Image
import cv2
import aircv as ac
import numpy as np
if __name__ == "__main__":
# pytest.main(['-s', r'D:\aeas\shendu_-ui_zidonghua\tests\test_zaoshang\test_zaoshang.py'])
# # 获取屏幕分辨率
# print(pyautogui.size())
# # # 获取鼠标的坐标位置
#