一、客户端启用appium。
二、CMD中命令行启动appium。
三、启动的代码。(appium的服务一和二选择一个就好了)
from appium import webdriverfrom time import sleepdef get_driver(): capablities = { "platformName": "Android", "deviceName": "127.0.0.1:62001", "app": "C:\\java\\gearbest_v4.0.1_release.apk", "appWaitActivity":"com.globalegrow.app.gearbest.soa.model.account.activity.UserLikeActivity" } driver = webdriver.Remote("http://127.0.0.1:4723/wd/hub", capablities) return driver
driver = get_driver()
原文地址:https://www.cnblogs.com/gaotiansai/p/10311998.html
时间: 2024-10-08 04:12:48