Forum Discussion

guillaume's avatar
guillaume
Contributor
14 years ago

TestComplete 8 unable to highlight visible WPF object

Hello.



I am about to test an application which uses WPF components.

I start with the namemapping and I already have a problem.



In the object browser (see attachments), I am trying to highlight an object (HwndSource:FMConnexion), everything is ok and the object is actually highlighted.

Then, I am trying to highlight the only child, FMConnexion, but unfortunately, I get the

Cannot highlight the object on screen.



Of course, this FMConnexion can not be highlighted, I wont be able to highlight the tbx_Login or any other children.



What could be the issue ?



Regards,



Guillaume.

1 Reply

  • Guillaume,


    The HwndSource:FMConnexion object corresponds to the window that is used to display the contents of a WPF form. The FMConnexion object is a WPF object, it does not have a window in terms of the operating system. However, since TestComplete supports WPF applications, it should be able to highlight this object on the screen. The situation looks strange, and at the moment, I cannot say what causes the problem.


    As far as I know, TestComplete can highlight only those objects whose Visible property is true. So, make sure that the tested form is visible on the screen, then look at the FMConnexion object in the Object Browser and check its Visible property. What value does it have, true or false?