详细信息:Appium 1.4.13; Mac OSX
虽然这个功能在1.4.13发布之前的一段时间内工作正常但从那时起我无法为我的应用程序刷新Appium Inspector的视图。加载层次结构但不显示IMAGE。即使单击“刷新”,也会生成以下日志:
2015-11-20 06:16:33:244 - info: - >得到 / wd / hub / session / 95abc888-6917-45c7-b004-155de500244e / source {}
2015-11-20 06:16:33:244 - info:[debug]将命令推送到appium工作 排队:["来源",{}]
2015-11-20 06:16:33:248 - info:[debug] [BOOTSTRAP] [debug]获取数据 来自客户:{" cmd":" action"," action":" source"," params":{ 2015-11-20 06:16:33:248 - info:[debug] [BOOTSTRAP] [debug]获得类型命令 ACTION 2015-11-20 06:16:33:248 - info:[debug] [BOOTSTRAP] [debug] Got 命令行动:来源
2015-11-20 06:16:33:259 - info:[debug] [UIAUTOMATOR STDOUT] [APPIUM-UIAUTO] [debug]返回结果:{" status":0," value":" ESC = \" \"可检查= \"假\" 检查= \"假\"可点击= \"假\" enabled = \ 2015-11-20 06:16:33:260 - info:[debug] [UIAUTOMATOR STDOUT]" true \" 可聚焦= \"假\"聚焦= \"假\"滚动= \"假\" 长可点击= \"假\"密码= \"假\"选定= \"假\" 界限= \" [15169] [753188] \"资源-ID = \" \" 实例= \" 0 \" />< /android.widget.RelativeLayout>< /android.widget.LinearLayout> 内容DESC = \" \"可检查= \"假\"检查= \"假\" 可点击= \"真\"启用= \"真\"可聚焦= \"假\" 聚焦= \"假\"滚动= \"假\" long-c 2015-11-20 06:16:33:262 - info:[debug]流仍未完成,等待2015-11-20 06:16:33:262 - info:[debug] [UIAUTOMATOR STDOUT] lickable = \" false \" 密码= \"假\"选定= \"假\"界限= \" [15326] [753366] \" 资源-ID = \" com.flipkart.android:ID / btn_mlogin \" 实例= \" 3 \" />< /android.widget.LinearLayout>< /android.widget.ScrollView>< /android.widget.RelativeLayout>< /android.widget。的LinearLayout>< /android.widget.ViewSwitcher>< /android.widget.FrameLayout>< /android.widget.LinearLayout>< /android.widget.FrameLayout>< /层级>"} / APPIUM-UIAUTO] 2015-11-20 06:16:33:265 - info:[debug]流仍未完成, 等待2015-11-20 06:16:33:266 - info:[debug]响应客户端 成功:{" status":0," value":" 2015-11-20 06:16:33:267 - info:< - GET / wd / hub / session / 95abc888-6917-45c7-b004-155de500244e / source 200 23.308 ms - 9023 {" status":0," value":" 2015-11-20 06:16:33:269 - info: - > GET / wd / hub / session / 95abc888-6917-45c7-b004-155de500244e / orientation {} 2015-11-20 06:16:33:270 - info:[debug]将命令推送到appium 工作队列:[" orientation",{}] 2015-11-20 06:16:33:273 - info:[debug] [BOOTSTRAP] [debug]从客户端获取数据: {" cmd":"行动","行动":"方向","参数":{}} 2015 -11-20 06:16:33:273 - info:[debug] [BOOTSTRAP] [debug]获得类型命令 ACTION 2015-11-20 06:16:33:274 - info:[debug] [BOOTSTRAP] [debug]得到了 命令行动:方向2015-11-20 06:16:33:274 - info:[debug] [BOOTSTRAP] [debug]当前轮换:ROTATION_0 2015-11-20 06:16:33:274 - info:[debug] [BOOTSTRAP] [debug]返回结果: {" status":0," value":" PORTRAIT"} 2015-11-20 06:16:33:274 - info: [debug]成功响应客户端: {"状态":0,"值":"纵向""的sessionId":" 95abc888-6917-45c7-B004 -155de500244e"} 2015-11-20 06:16:33:275 - 信息:< - GET / wd / hub / session / 95abc888-6917-45c7-b004-155de500244e / orientation 200 5.853 ms - 82 {" status":0," value":" PORTRAIT"," sessionId":" 95abc888-6917 -45c7-b004-155de500244e"} 2015-11-20 06:16:33:277 - info: - >得到 / wd / hub / session / 95abc888-6917-45c7-b004-155de500244e / screenshot {} 2015-11-20 06:16:33:278 - info:[debug]执行cmd: / Applications / adt-bundle-mac-x86_64-20140702 / sdk / platform-tools / adb -s 192.168.56.101:5555 shell" / system / bin / rm /data/local/tmp/screenshot.png; / system / bin / screencap -p /data/local/tmp/screenshot.png"
2015-11-20 06:16:33:354 - info:[debug]执行cmd: / Applications / adt-bundle-mac-x86_64-20140702 / sdk / platform-tools / adb -s 192.168.56.101:5555 pull /data/local/tmp/screenshot.png" /var/folders/9_/zhwc774n3kx8k1g7s_n3q9n15by3jh/T/appium1151020-1782-57al17.png"
2015-11-20 06:16:33:394 - info:[debug]响应客户端 成功: {"状态":0,"值":"""的sessionId":" 95abc888-6917-45c7-B004 -155de500244e"}
2015-11-20 06:16:33:395 - info:< - GET / wd / hub / session / 95abc888-6917-45c7-b004-155de500244e / screenshot 200 118.561 ms - 74 {" status":0," value":""," sessionId":" 95abc888-6917 -45c7-b004-155de500244e"}
2015-11-20 06:16:33:398 - info: - >得到 / wd / hub / session / 95abc888-6917-45c7-b004-155de500244e / contexts {} 2015-11-20 06:16:33:398 - info:[debug]获取可用列表 webviews 2015-11-20 06:16:33:398 - info:[debug]执行cmd: / Applications / adt-bundle-mac-x86_64-20140702 / sdk / platform-tools / adb -s 192.168.56.101:5555 shell" cat / proc / net / unix"
2015-11-20 06:16:33:442 - info:[debug] WEBVIEW_3598映射到pid 3598
2015-11-20 06:16:33:442 - info:[debug]获取进程名称 webview 2015-11-20 06:16:33:443 - info:[debug]执行cmd: / Applications / adt-bundle-mac-x86_64-20140702 / sdk / platform-tools / adb -s 192.168.56.101:5555 shell" ps"
2015-11-20 06:16:33:485 - info:[debug] Parsed pid:3598 pkg: com.flipkart.android
2015-11-20 06:16:33:486 - info:[debug] from: u0_a67,3598,465,1106360,97644,FFFFFFFF,b7577d05,S,com.flipkart.android 2015-11-20 06:16:33:486 - info:[debug]返回进程名称: com.flipkart.android 2015-11-20 06:16:33:486 - info:[debug]可用 上下文:NATIVE_APP,WEBVIEW_com.flipkart.android 2015-11-20 06:16:33:486 - info:[debug] [" WEBVIEW_com.flipkart.android"] 2015-11-20 06:16:33:486 - info:[debug]可用的上下文: NATIVE_APP,WEBVIEW_com.flipkart.android 2015-11-20 06:16:33:487 - info:[debug]成功响应客户端: {"状态":0,"值":[" NATIVE_APP"" WEBVIEW_com.flipkart.android&#34],"的sessionId& #34;:" 95abc888-6917-45c7-b004-155de500244e"} 2015-11-20 06:16:33:488 - info:< - GET / wd / hub / session / 95abc888-6917-45c7-b004-155de500244e / contexts 200 90.058毫秒 - 117 {"状态":0,"值":[" NATIVE_APP"," WEBVIEW_com.flipkart.android"],& #34;的sessionId":" 95abc888-6917-45c7-b004-155de500244e"}
答案 0 :(得分:0)
问题在于安装Appium本身。尝试将upgrade
应用从1.4.8改为1.4.13,而不是从.dmg
安装1.4.13的应用。