Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我们正在开发一个使用 VB 脚本和 QTP 来自动化 VB 应用程序的项目。在第一次构建时,QTP 能够识别 VB 应用程序中的窗口对象。但是在下一个版本中,QTP 没有识别相同的窗口对象并建议窗口对象具有不同的 ID。如何解决这个问题?
请提供更多详细信息 - 如果没有更多上下文,很难告诉您如何解决问题。例如,GUI Spy 为构建 1 的对象显示了什么?间谍在构建 2 中为同一对象显示什么?如果 id 不一致,你可能需要使用正则表达式来匹配一个模式,或者使用一个或多个不同的属性来标识对象。