python+uiautomator.py
import base64 """ 界面元素基础操作 """ import uiautomator2 as u2 from Config.Config import Config from Api.Public.PyApiLog import PyApiLog import datetime import os import time from unittest import TestCase class Action: def __init__(self): pass def connect_wifi(self, ip): """ 通过WiFi连接设备:ip根据情况自己修改 :param ip: :return: """ return u2.connect_wifi(ip) def connect_usb(self): """ 通过USB连接设备 :return: """ return u2.connect_usb()