简体   繁体   English

QTP对象识别不一致

[英]QTP Object recognition not consistent

I'm writing a script to automate a desktop application. 我正在编写一个脚本来自动化桌面应用程序。 The issue I'm having is that there are few windows that are not recognized by the QTP on run-time The script runs fine 70% of the time. 我遇到的问题是,在运行时QTP无法识别一些窗口。脚本在70%的时间内运行良好。 But sometime it gives me an error saying that Object is not visible. 但是有时它给我一个错误,指出对象不可见。 And I have to manually delete the Object from OR and add it again to the OR. 而且我必须手动从OR中删除对象,然后将其再次添加到OR中。 I don't know why it's doing it. 我不知道为什么要这么做。
It would be very helpful to me. 这对我很有帮助。

Thank you. 谢谢。

You should check the window's description and see how it differs from the existing window. 您应该检查窗口的描述,并查看它与现有窗口的不同之处。 Then you can update the description to either use a regular expression or use different properties. 然后,您可以更新描述以使用正则表达式或使用其他属性。

Maintenance Run Mode can help you do this by showing the diff and suggesting regular expressions. 维护运行模式可以通过显示差异和建议正则表达式来帮助您完成此任务。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM