一、调用被测程序基本步骤
#coding=utf-8
from appium import webdriver
import os
desired_caps = {}
desired_caps[‘platformName‘] = ‘Android‘
desired_caps[‘platformVersion‘] = ‘4.4.2‘
desired_caps[‘deviceName‘] = ‘Android Emulator‘
desired_caps[‘appPackage‘] = ‘com.kugou.fanxing‘
desired_caps[‘appActivity‘] = ‘com.kugou.fanxing.splash.ui.SplashActivity‘
driver = webdriver.Remote(‘http://localhost:4723/wd/hub‘, desired_caps)
时间: 2024-11-03 03:34:33