1、问题概述?
今天在window环境中安装了appium2.5.2版本,通过appium inspector连接真机的时候报错如下:
Failed to create session. 'automationName' can't be blank

原因分析:这是因为appium2的比appium1有了很大的改进,在使用上略有区别造成的。
需要在使用的时候,添加automationName参数。
2、具体解决办法?
Android设备需要添加属性"appium:automationName": "UiAutomator2"

【具体参数】
{
"platformName": "Android",
"appium:deviceName": "94c5c8b1",
"appium:automationName": "UiAutomator2",
"appium:appPackage": "com......",
"appium:appActivity": "com.....",
"appium:platformVersion": "8.1.0"
}
【配置连接后效果】

本文描述了在Windows环境下安装Appium2.5.2时,遇到连接真机失败的问题,原因在于需要在appiuminspector中指定`automationName`参数。作者提供了Android设备的配置示例,包括`appium:automationName`设置为`UiAutomator2`以解决问题。
4174

被折叠的 条评论
为什么被折叠?



