UI Automation出现QueryInterface 调用异常
来源:互联网 发布:淘宝网信用卡分期付款 编辑:程序博客网 时间:2024/06/04 21:58
在使用UI Automation的findFirst查找控件的时候出现了以下异常:
执行了 QueryInterface 调用,请求提供 COM 可见的托管类“MS.Internal.AutomationProxies.WindowsEditBox”的类接口。不过,由于该类是从非 COM 可见的类“MS.Internal.AutomationProxies.ProxyHwnd”派生的,QueryInterface 调用将失败。这样做的目的是避免非 COM 可见的基类受 COM 版本规则的约束。
后来发现如果不使用AutomationElement.NameProperty属性查找就没问题
使用UI Spy检查控件属性,属性值为空。原来如此。
- UI Automation出现QueryInterface 调用异常
- UI Automation出现QueryInterface 调用异常
- UI Automation
- django + semantic ui 框架,接口测试正常,在前端点击按钮调用出现异常问题解决
- UI Automation Introduction.
- UI Automation(一)
- UI Automation-InvokePattern
- UI Automation-ValuePattern
- UI Automation-ExpandCollapsePattern
- UI Automation-SelectItemPattern
- UI Automation test
- UI Automation-ScrollPattern
- UI Automation-TogglePattern
- UI automation - .net
- UI Automation-WindowPattern
- UI Automation-GridPattern
- UI Automation-TablePattern
- UI Automation-RangeValuePattern
- strcmp函数 strncmp函数 strcmpi,stricmp函数
- ASP.NET缓存解决方案和最佳实践
- ASP.NET 导出Excel文件
- 堆栈分区(5.9)
- 开发与编程ABAP取IP地址的方法
- UI Automation出现QueryInterface 调用异常
- android No projects are found to import
- wchar_t* 与 char* 相互转换(自己写的函数)
- oracle事务处理中的版本控制
- 从一个子框架页面调用另一个子框架页面内的JavaScript函数
- 代码 自己懂得
- CentOS Linux利用ntfs-3g挂载读写Windows的ntfs分区
- (剪枝)stick(P1011)
- .net中SessionState相关配置