如下为启动 格来云游戏APP启动信息
代码如下:
1 from appium import webdriver 2 3 caps = {} 4 caps["platformName"] = "Android" 5 caps["platformVersion"] = "7" 6 caps["deviceName"] = "leo" 7 caps["appPackage"] = "cn.gloud.client.mobile" 8 caps["appActivity"] = "cn.gloud.client.mobile.init.InitActivity"
9 ‘‘‘ 10 deviceName 获取 11 adb devices -l 12 appPackage 获取 13 aapt dump badging 包名 14 package: name=‘cn.gloud.client.mobile‘ 15 appActivity 获取 16 launchable-activity: name=‘cn.gloud.client.mobile.init.InitActivity‘ 17 ‘‘‘
18 driver = webdriver.Remote("http://localhost:4723/wd/hub", caps