UiAutomationCore.dll中的System.AccessViolationException异常
我们有一个测试自动化工具,它经常使用UI Automation API。在最新版本的Windows(如Windows 10 21H2、Windows 11)中,API在调用AutomationElement类的方法之一时抛出异常System.AccessViolationException。 以下是我们的代码: AutomationElement uiaElement; ....
..