简体   繁体   English

Chrome://inspect 显示我的设备,但我无法检查它

[英]Chrome://inspect shows my device but I can't inspect it

I want to get my hands dirty with app automation so I've been playing around with learning Appium (if anybody has any good tutorials send em my way!).我想接触应用自动化,所以我一直在学习 Appium(如果有人有任何好的教程,请发送给我!)。 I have an app on my local machine that I'm wanting to use for testing purposes.我的本地机器上有一个应用程序,我想将其用于测试目的。

The app is one I've created with c# and Xamarin Forms so I have all the files and the .apk locally.该应用程序是我使用 c# 和 Xamarin Forms 创建的应用程序,因此我在本地拥有所有文件和 .apk。

I found a video that said you could use the chrome://inspect page to view apps in an emulator and even inspect them.我发现一个视频说你可以使用chrome://inspect页面在模拟器中查看应用程序,甚至检查它们。 When my app is running (starting it via Visual Studio) I can see it pop up in the device list but I don't have the option to inspect it.当我的应用程序运行时(通过 Visual Studio 启动它),我可以看到它在设备列表中弹出,但我没有检查它的选项。

I'm not sure how people feel about pictures but I don't really have any code to post so I'll just show you that the app is, indeed, running and what I see on the chrome devices page.我不确定人们对图片的看法,但我真的没有任何代码可以发布,所以我只会向您展示该应用程序确实正在运行以及我在 chrome 设备页面上看到的内容。

Here is my app running这是我的应用程序正在运行在此处输入图片说明

And here is the device list from chrome.这是来自 chrome 的设备列表。 You can see the emulator there but I can't do anything with it你可以在那里看到模拟器,但我不能用它做任何事情在此处输入图片说明

What am I missing here?我在这里缺少什么?

Chrome://Inspect is a part of Chrome Dev Tools that lets you see port forwarded web views from the mobile in a desktop browser. Chrome://InspectChrome Dev Tools的一部分,可让您在桌面浏览器中从移动设备查看端口转发的 Web 视图。 This is because we cannot inspect elements in Chrome mobile (something we do in desktop browser with CTRL+SHIFT+I ) and we have to forward the chrome mobile window to chrome desktop.这是因为我们无法检查 Chrome 移动版中的元素(我们在桌面浏览器中使用CTRL+SHIFT+I ),我们必须将 chrome 移动版窗口转发到 chrome 桌面版。

To inspect element, if you're working on a web page or web application, just simply right click on that page and choose Inspect要检查元素,如果您正在处理网页或 Web 应用程序,只需右键单击该页面并选择“ Inspect

And in your case, for inspecting Android application (apk), you should use UiAutomatorViewer, AppiumStudio, Katalon mobile spy, etc... Here is my answer to similar question: https://stackoverflow.com/a/58204262/7302505在您的情况下,为了检查 Android 应用程序 (apk),您应该使用 UiAutomatorViewer、AppiumStudio、Katalon 移动间谍等......这是我对类似问题的回答: https ://stackoverflow.com/a/58204262/7302505

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM