首页 > 其他分享 >FlaUI

FlaUI

时间:2023-09-22 23:56:27浏览次数:32  
标签:FlaUI Core cf window var using

https://github.com/FlaUI/FlaUI

 

using FlaUI.Core.AutomationElements;
using FlaUI.UIA3;

// Note: Works only pre-Windows 8 with the legacy calculator
var app = FlaUI.Core.Application.Launch("calc.exe");
using (var automation = new UIA3Automation())
{
	var window = app.GetMainWindow(automation);
	var button1 = window.FindFirstDescendant(cf => cf.ByText("1"))?.AsButton();
	button1?.Invoke();
	...
}

  

标签:FlaUI,Core,cf,window,var,using
From: https://www.cnblogs.com/chinasoft/p/17723709.html

相关文章

  • 关于FlaUI的使用
    项目简介FlauI是一个开源的.NET库,用于自动化测试Windows应用程序。它可以通过编写C#代码来模拟用户在应用程序中的操作,例如点击按钮、输入文本、移动鼠标、触摸、获取元素、获取窗口标题等。它提供了一个简单的API和精确的鼠标控制功能,让开发者能够轻松地编写自动化脚本,从而提高......