Microsoft UI 自动化框架是否适用于 Chrome、Python 和 Java 应用程序? [英] Does Microsoft UI Automation Framework work with Chrome, Python and Java Apps?

查看:33
本文介绍了Microsoft UI 自动化框架是否适用于 Chrome、Python 和 Java 应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在从事一个自动化项目,我需要在其中捕获用户在桌面上执行的活动 [启动的应用程序、输入的数据、输入类型等].我遇到了 Microsoft UI 自动化框架,到目前为止,它适用于基于本机 Windows 的应用程序,如 MS Office、.NET 应用程序等.但是我没有找到任何有用的信息/从不同网络浏览器捕获信息的示例 [Chrome 是必须的],Python 应用程序,Java 应用程序等.有人可以确认 MS UI 自动化框架是否支持此类应用程序.任何从这些应用程序中提取用户活动的工作示例都将受到高度赞赏.谢谢.

I am working on an automation project, in which I need to capture the activities [ application launched, data entered, input type etc.] user performs on a desktop. I came across Microsoft UI Automation framework which so far works well for native windows based applications like MS Office, .NET apps etc. However I did not find any useful information / samples of capturing the information from different web browsers [Chrome is a must], Python apps, Java Apps etc. Can someone please confirm whether MS UI Automation Framework supports such apps. Any working example to extract user activities from these apps would be highly appreciated. Thanks.

推荐答案

Chrome 仅支持 Web 页面周围的工具栏、标签、菜单、按钮的 UI 自动化.UIA 看不到呈现为网页的所有内容.

Chrome only supports UI Automation for toolbars, tabs, menu, buttons around the web page. Everything that's rendered as a web page is not seen by UIA.

对于网页内容,最简单的方法是使用Selenium(由ChromeDriver),这是浏览器事实上的标准,与 UIA 无关.

For the web page content, the easiest way is to use Selenium (driven by the ChromeDriver), which is kind of a de facto standard for browsers, and has nothing to do with UIA.

要测试应用程序是否支持 UIA,以及支持的程度,这很简单,只需运行 UIA 的 检查工具并检查该应用程序上的 UI 树.

To test if an app supports UIA, and how far it does, it's very easy, just run UIA's Inspect tool and check the UI tree over that application.

这篇关于Microsoft UI 自动化框架是否适用于 Chrome、Python 和 Java 应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆