Wpf QTP UFT航班预订无法识别对象“;HPE MyFlight样本应用程序“;
我正试图用UFT QTP和fight示例应用程序记录一个场景。 我使用本教程安装了WPF附加组件 它已成功安装。但是在录制之后,我得到了一个没有wpf对象的代码Wpf QTP UFT航班预订无法识别对象“;HPE MyFlight样本应用程序“;,wpf,qtp,Wpf,Qtp,我正试图用UFT QTP和fight示例应用程序记录一个场景。 我使用本教程安装了WPF附加组件 它已成功安装。但是在录制之后,我得到了一个没有wpf对象的代码 Window("HPE MyFlight Sample Applicatio").Click 203,223 Window("HPE MyFlight Sample Applicatio").Type "john" Window("HPE MyFlight Sample Applicatio").Click 216,280 Window
Window("HPE MyFlight Sample Applicatio").Click 203,223
Window("HPE MyFlight Sample Applicatio").Type "john"
Window("HPE MyFlight Sample Applicatio").Click 216,280
Window("HPE MyFlight Sample Applicatio").Type "hp"
Window("HPE MyFlight Sample Applicatio").Click 186,348
Window("HPE MyFlight Sample Applicatio_2").Close
执行代码后,我得到以下错误:
Cannot identify the object "HPE MyFlight Sample Applicatio" (of class Window).
Verify that this object's properties match an object currently displayed in your application.
Description
Cannot identify the object "HPE MyFlight Sample Applicatio" (of class Window).
Verify that this object's properties match an object currently displayed in your application.
Object's physical description:
regexpwndtitle = HPE MyFlight Sample Application
regexpwndclass = HwndWrapper[FlightsGUI.exe;;a3bd17a0-f90c-492a-8183-ec384ab007cb]
is owned window = 0
is child window = 0
谢谢你的帮助。有三件事你需要检查
WpfWindow("HP MyFlight Sample Application").WpfEdit("agentName").Set "john"
WpfWindow("HP MyFlight Sample Application").WpfEdit("password").SetSecure "597f38ad85b47efe95f1"
WpfWindow("HP MyFlight Sample Application").WpfButton("OK").Click