gpt4 book ai didi

powershell - 如何在 PowerShell 中导入 UIAutomation 文件?

转载 作者:行者123 更新时间:2023-12-03 00:10:00 24 4
gpt4 key购买 nike

我正在尝试导入 UIAutomation PowerShell 中的文件从这个网站

https://archive.codeplex.com/?p=uiautomation



但是我下载的时候没有 .dll文件。如何使用 Inspect.exe 等程序自动化 UIPowerShell ?

我正在按照本网站的步骤进行操作

https://www.softwaretestinghelp.com/desktop-application-ui-automation-with-powershell/

最佳答案

下载的 zip 包含 6 项,其中一项是 发布 文件夹。你会在它下面找到一个 releaseList.json 文件。

现在,该文件不是很清楚,但是,假设您想将该文件与 .Net 框架 4 和版本 一起使用0.8.7 测试版 3 ,只需向下滚动到底部,在 ID:44 下,您有 5 个文件名条目为:

  • UIAutomation.0.8.7B3.NET35.zip
  • UIAutomation.0.8.7B3.NET40.zip
  • UIAutomation.0.8.7B3.for.ModernUI.zip
  • UIAutomation.0.8.7B3.sources.zip
  • UIAutomation.0.8.7B3.samples.zip

  • 根据您的要求确定您需要哪一个 - 我选择了 UIAutomation.0.8.7B3.NET40.zip .现在,检查其对应的 URL,它应该会告诉您需要查找哪个文件。

    对于我使用的那个,URL 是:./ 44 / e1bf995a-f3c9-453d-88bc-0ff6d3509820 ,因此您需要返回发布文件夹,然后浏览标记为 的文件夹44 并找到名为 的文件e1bf995a-f3c9-453d-88bc-0ff6d3509820 .

    使用 zip 查看器打开上述文件并提取其内容,您可以在此处找到 UiAutomation.dll 文件。使用 进口模块使用提取的文件位置的路径,您应该一切顺利。

    关于powershell - 如何在 PowerShell 中导入 UIAutomation 文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51231731/

    24 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com