Sample App FlightGUI object recognition not working

Category:
Question ID: 110055
1
0

I’m trying to use the Sample FlightGUI application that came with UFT to do some training, and it is not working right. When I record steps, I get Window objects, but when I replay the script, I get an error stating UFT cannot identify the objects. Here’s some sample code I’m getting:

Window("Micro Focus MyFlight Sample").Click
Window("Micro Focus MyFlight Sample").Type "john"
Window("Micro Focus MyFlight Sample").Click
Window("Micro Focus MyFlight Sample").Type "hp"
Window("Micro Focus MyFlight Sample").Click

How can I resolve this?

Marked as spam
Posted by (Questions: 384, Answers: 61)
Asked on January 29, 2021 4:14 pm
44 views
Answers (1)
1
Private answer

There are a couple of things that could be wrong, but the most likely is that you need to load the WPF add-in to test the sample app. Check that and let me know if it works.

Marked as spam
Posted by (Questions: 16, Answers: 802)
Answered on January 29, 2021 4:15 pm
Loading WPF did the trick. I'm glad it was a simple solution! Thanks!
( at January 29, 2021 4:15 pm)
EyeOnTesting.com