appium 出现报错 “could not connect to server are you sure it‘s running?“如何解决

appium 出现报错 “could not connect to server are you sure it‘s running?“如何解决

我们直接打开的话,是到了Custom Server一栏的,但如果我们要用appium去定位元素的话,是需要去选择Automatic
Server一栏

appium 出现报错 “could not connect to server are you sure it‘s running?“如何解决

使用方法:

1、用数据线与手机建立连接(使用adb命令:adb devices查看是否连接,并得出该手机的***)

2、运行appium,并点击右上角的“搜索”符号

3、编辑需要定位的程序的信息,并保存

4、选择Automatic Server一栏,点击start session就能够进入到需要定位的界面了

转载:https://www.cnblogs.com/echo-one/p/12850003.html