HP-UFT WPF TextBlock object capture

0
0

I am working on a WPF application where we have to automate testing.
This work fine for many components but we struggle to check a summary page where we use TextBlock to display our data.

The WPF TextBlock is not found by the HP tool. Thus we cannot check the values that we display.

We tried the following solutions but without success:

  • Change x:Name in Name (not the best idea right, but we tried all!)
  • AutomationProperties.AutomationId on the TextBloc
  • AutomationProperties.Name
  • Make the TextBlock focusable
  • The solution presented here: WPF Tutorial Solution

None of them Worked and we are currently blocked.

Has anyone experience with this? Is there a clean solution to solve this issue?

What we need: access TextBlock content, in particular Text from HP UFT Tool.

  • You must to post comments
0
0

Can you provide more details,like below

  • what UFT is showing when you spy on the object(provide screenshot if you can)
  • screenshot of the TextBlock control
  • You must to post comments
Showing 1 result
Your Answer
Post as a guest by filling out the fields below or if you already have an account.
Name*
E-mail*
Website