powershell 开发入门_WinAppDriver 快速入门

本文介绍了Windows Application Driver (WinAppDriver)的使用,它为Windows应用程序提供Selenium式的UI自动化测试服务,支持UWP、WinForms、WPF和Win32应用。文中详细讲解了如何运行WinAppDriver,启动UWP程序,进行点击、截图、获取元素坐标、属性等操作,以及页面滑动和窗口调整等测试步骤。
摘要由CSDN通过智能技术生成

努力到无能为力,拼搏到感动自己。

f2db79073acc85f2d22c70df4cfa8be2.png 06a3bd69ea996f96b9076fbf22ebf01d.png Win App Driver 简介 67db19f0299868e983e64071198f5552.png

    Windows Application Driver(WinAppDriver)是在windows应用程序上支持类似Selenium的UI自动化测试服务。

支持的测试类型如下:

Universal Windows Platform (UWP)

Windows Forms (WinForms)

Windows Presentation Foundation (WPF)

Classic Windows (Win32)

参考地址:https://github.com/microsoft/WinAppDriver
入门教程   下载安装
Windos Application Driver 下载地址:https://github.com/Microsoft/WinAppDriver/releases 默认安装位置:C:\Program Files (x86)\Windows Application Driver\WinAppDriver.exe注意:Windows 必须将开发者模式打开,否则WinAppdriver无法运行,打开方式如下:按快捷键“Win+R”,并输入“ms-settings:developers”,回车之后会跳转开发者选项设置页面,然后选择开发人员模式通过在PowerShell中输入“Get-WindowsDeveloperLicense”,如果返回信息是True,说明开发者模式已打开PS C:\Users\ThinkBook> Get-WindowsDeveloperLicenseExpirationTime     IsValid--------------     -------9999/12/31 8:00:00    True
测试程序启动/退出

1、 运行Windows App Driver

启动后
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值