1、获取当前activity from appium import webdriver desired_caps = { 'platformName' : 'Android', 'platformVersion' : '6.0', 'deviceName' : '127.0.0.1:62001', 'appPackage' : '