Appium自动化部署:
1)安装appium桌面程序安装:超链接
2)安装客户端
pip install appium-python-client
3)安装服务器
安装 Nodejs
4)连接appium服务
# 连接appium
# appium服务器地址
command_executor = "http://127.0.0.1:4723/wd/hub" #默认
# 所需能力:http://appium.io/docs/cn/writing-running-appium/caps/index.html
desired_capabilities = {
"platformName": "Android",
"platformVersion": "7",
"deviceName": "android",
"newCommandTimeout": "60000",
"noReset": False,
"unicodeKeyboard": True,
"resetKeyboard": True,
"appPackage": "apk包名",
"appActivity": "对应apk包的activity",
}
driver = webdriver.Remote(
command_executor=command_executor,
desired_capabilities=desired_capabilities
)